apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apr/test testmmap.c
Date Mon, 04 Dec 2000 22:59:59 GMT
wrowe       00/12/04 14:59:58

  Modified:    test     testmmap.c
  Log:
    Build even if the platform doesn't support mmap.
  
  Revision  Changes    Path
  1.16      +6 -0      apr/test/testmmap.c
  
  Index: testmmap.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testmmap.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- testmmap.c	2000/12/04 22:26:53	1.15
  +++ testmmap.c	2000/12/04 22:59:58	1.16
  @@ -68,6 +68,7 @@
   
   int main(void)
   {
  +#if APR_HAS_MMAP    
       apr_pool_t *context;
       apr_mmap_t *themmap = NULL;
       apr_file_t *thefile = NULL;
  @@ -131,4 +132,9 @@
       fprintf (stdout,"\nTest Complete\n");
   
       return 1;
  +#else    
  +    fprintf(stdout,"APR MMAP Test\n*************\n\n");
  +    fprintf(stdout,"Failed!  APR was not built with MMAP.\n");
  +    return -1;
  +#endif
   }
  
  
  

Mime
View raw message