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 Sun, 22 Feb 2004 12:41:39 GMT
jorton      2004/02/22 04:41:39

  Modified:    .        Tag: APR_0_9_BRANCH configure.in
  Log:
  Backport from HEAD:
  
  * configure.in: Fix comparison of mmap() return value.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.535.2.6 +1 -1      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.535.2.5
  retrieving revision 1.535.2.6
  diff -w -d -u -r1.535.2.5 -r1.535.2.6
  --- configure.in	29 Jan 2004 14:11:45 -0000	1.535.2.5
  +++ configure.in	22 Feb 2004 12:41:38 -0000	1.535.2.6
  @@ -634,7 +634,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