You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@hyperreal.org on 1998/05/06 23:00:39 UTC

cvs commit: apache-1.3/src/main http_main.c

martin      98/05/06 14:00:39

  Modified:    src/main http_main.c
  Log:
  For system requiring the apache "union semun" definition (i.e., the
  NEED_UNION_SEMUN #define): On 64 bit Unixes (where sizeof(void*) == 8)
  the "val" field should be a long, not an int. Otherwise the kernel would
  access a halfway undefined field.
  On 32 bit Unixes, this change will have no impact.
  
  Obtained from: Uschi Pippel <pi...@sni.de>
  Reviewed by:	Jim Jagielski
  
  Revision  Changes    Path
  1.331     +1 -1      apache-1.3/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/http_main.c,v
  retrieving revision 1.330
  retrieving revision 1.331
  diff -u -u -r1.330 -r1.331
  --- http_main.c	1998/05/04 16:46:40	1.330
  +++ http_main.c	1998/05/06 21:00:38	1.331
  @@ -547,7 +547,7 @@
   #ifdef NEED_UNION_SEMUN
   /* it makes no sense, but this isn't defined on solaris */
   union semun {
  -    int val;
  +    long val;
       struct semid_ds *buf;
       ushort *array;
   };