apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr configure.in
Date Sat, 21 Feb 2004 14:10:19 GMT
jorton      2004/02/21 06:10:19

  Modified:    .        configure.in
  Log:
  * configure.in: Fix comparison of mmap() return value.
  
  Revision  Changes    Path
  1.572     +1 -1      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.571
  retrieving revision 1.572
  diff -w -d -u -r1.571 -r1.572
  --- configure.in	21 Feb 2004 00:31:48 -0000	1.571
  +++ configure.in	21 Feb 2004 14:10:19 -0000	1.572
  @@ -637,7 +637,7 @@
               return 1;
           }
           m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
  -        if (m < 0) {  /* aka MAP_FAILED */
  +        if (m == (void *)-1) {  /* aka MAP_FAILED */
               return 2;
           }
           if (munmap(m, sizeof(void*)) < 0) {
  
  
  

Mime
View raw message