apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: apr/include/arch/unix shm.h
Date Tue, 22 Jan 2002 18:06:15 GMT
aaron       02/01/22 10:06:15

  Modified:    include/arch/unix shm.h
  Log:
  AIX does not define MAP_FAILED, but it's just a (void *)-1.
  
  Submitted by:	Elrond <elrond@samba-tng.org>
  Reviewed by:	Sander Striker <striker@apache.org>, Aaron Bannert
  
  Revision  Changes    Path
  1.2       +6 -0      apr/include/arch/unix/shm.h
  
  Index: shm.h
  ===================================================================
  RCS file: /home/cvs/apr/include/arch/unix/shm.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- shm.h	10 Jan 2002 00:28:14 -0000	1.1
  +++ shm.h	22 Jan 2002 18:06:15 -0000	1.2
  @@ -84,6 +84,12 @@
   #include <sys/file.h>
   #endif
   
  +/* Not all systems seem to have MAP_FAILED defined, but it should always
  + * just be (void *)-1. */
  +#ifndef MAP_FAILED
  +#define MAP_FAILED ((void *)-1)
  +#endif
  +
   struct apr_shm_t {
       apr_pool_t *pool;
       void *base;          /* base real address */
  
  
  

Mime
View raw message