Commit 1f71772a authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88113 13f79535-47bb-0310-9956-ffa450edef68
parent c1b845b8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1523,7 +1523,12 @@ AP_DECLARE(extern const char *) ap_psignature(const char *prefix, request_rec *r
  /* 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