httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/include httpd.h
Date Mon, 12 Feb 2001 15:44:47 GMT
trawick     01/02/12 07:44:44

  Modified:    include  httpd.h
  Log:
  string.h needs to be included before monkeying around with strchr et al,
  since some system header files do their own monkeying around with those
  functions in ways that don't get along with us unless we include their
  definitions first
  
  examples: gcc 2.8.1 on Solaris
            gcc 2.95.2 on AIX
  
  Revision  Changes    Path
  1.136     +5 -0      httpd-2.0/include/httpd.h
  
  Index: httpd.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/include/httpd.h,v
  retrieving revision 1.135
  retrieving revision 1.136
  diff -u -r1.135 -r1.136
  --- httpd.h	2001/02/12 02:49:56	1.135
  +++ httpd.h	2001/02/12 15:44:36	1.136
  @@ -1523,7 +1523,12 @@
     /* The C library has functions that allow const to be silently dropped ...
        these macros detect the drop in maintainer mode, but use the native
        methods for normal builds
  +
  +     Note that on some platforms (e.g., AIX with gcc, Solaris with gcc), string.h needs

  +     to be included before the macros are defined or compilation will fail.
     */
  +#include <string.h>
  +
   #ifdef AP_DEBUG
   
   #undef strchr
  
  
  

Mime
View raw message