apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/test testmmap.c
Date Fri, 07 Feb 2003 17:55:27 GMT
bnicholes    2003/02/07 09:55:27

  Modified:    test     testmmap.c
  Log:
  Fixed a compile problem if mmap has not been implemented
  
  Revision  Changes    Path
  1.43      +2 -1      apr/test/testmmap.c
  
  Index: testmmap.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testmmap.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- testmmap.c	31 Jan 2003 23:53:18 -0000	1.42
  +++ testmmap.c	7 Feb 2003 17:55:27 -0000	1.43
  @@ -170,9 +170,10 @@
   CuSuite *testmmap(void)
   {
       CuSuite *suite = CuSuiteNew("MMAP");
  -    fsize = strlen(TEST_STRING);
   
   #if APR_HAS_MMAP    
  +    fsize = strlen(TEST_STRING);
  +
       SUITE_ADD_TEST(suite, create_filename);
       SUITE_ADD_TEST(suite, test_file_open);
       SUITE_ADD_TEST(suite, test_get_filesize);
  
  
  

Mime
View raw message