httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_cgid.c
Date Sat, 10 Jun 2000 11:25:26 GMT
trawick     00/06/10 04:25:26

  Modified:    src      CHANGES
               src/modules/standard mod_cgid.c
  Log:
  Fix a Solaris compilation problem with mod_cgid:
  Use <sys/un.h> to get sockaddr_un.  Previously we declared it ourselves
  for unknown reasons.  I am now able to compile on Linux (RH6.1), Solaris
  8, and FreeBSD 3.4.  Also, I don't see a mention in UNP V1 (2e) of the
  need to play tricks to get sockaddr_un.
  
  Revision  Changes    Path
  1.148     +3 -1      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.147
  retrieving revision 1.148
  diff -u -r1.147 -r1.148
  --- CHANGES	2000/06/10 02:06:00	1.147
  +++ CHANGES	2000/06/10 11:25:25	1.148
  @@ -23,7 +23,9 @@
        sometimes mangled.  The len parm to accept() was not 
        initialized, leading sometimes to an endless loop of failed
        accept() calls on OS/390 and anywhere else that failed the call
  -     if the len was negative.  [Jeff Trawick]
  +     if the len was negative.  Use <sys/un.h> for struct sockaddr_un
  +     instead of declaring it ourselves to fix a compilation problem
  +     on Solaris.  [Jeff Trawick]
   
     *) Add Resource limiting code back into Apache 2.0. [Ryan Bloom]
   
  
  
  
  1.18      +1 -12     apache-2.0/src/modules/standard/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_cgid.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- mod_cgid.c	2000/06/09 15:20:13	1.17
  +++ mod_cgid.c	2000/06/10 11:25:26	1.18
  @@ -90,18 +90,7 @@
   #include "ap_mpm.h"
   #include "iol_socket.h"
   #include "unixd.h"
  -
  -#ifndef UNIX_PATH_MAX
  -#define UNIX_PATH_MAX 108
  -#endif
  -
  -#ifndef sockaddr_un
  -struct sockaddr_un {
  -    unsigned short sun_family;
  -    char sun_path[UNIX_PATH_MAX];
  -};
  -#endif
  -
  +#include <sys/un.h> /* for sockaddr_un */
   
   module MODULE_VAR_EXPORT cgid_module; 
   
  
  
  

Mime
View raw message