sascha      99/12/29 15:57:57

  Modified:    src/modules/mpm/prefork prefork.c
  Log:
  Fall back to save values for SHM_R and SHM_W, if the system does not
  define them.
  
  Revision  Changes    Path
  1.61      +13 -0     apache-2.0/src/modules/mpm/prefork/prefork.c
  
  Index: prefork.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/mpm/prefork/prefork.c,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -u -r1.60 -r1.61
  --- prefork.c 1999/12/15 21:39:08     1.60
  +++ prefork.c 1999/12/29 23:57:53     1.61
  @@ -105,7 +105,20 @@
   #include <sys/types.h>
   #include <sys/ipc.h>
   #include <sys/shm.h>
  +
  +/* some systems do not define SHM_[RW]; values are from Unix98 */
  +
  +#ifndef SHM_R
  +#define SHM_R 0x400
   #endif
  +
  +#ifndef SHM_W
  +#define SHM_W 0x200
  +#endif 
  +
  +#endif
  +
  +
   
   #ifdef HAVE_BSTRING_H
   #include <bstring.h>         /* for IRIX, FD_SET calls bzero() */
  
  
  

Reply via email to