]> granicus.if.org Git - php/commitdiff
Counteract brain-death in Apache headers
authorWez Furlong <wez@php.net>
Thu, 18 Dec 2003 11:26:00 +0000 (11:26 +0000)
committerWez Furlong <wez@php.net>
Thu, 18 Dec 2003 11:26:00 +0000 (11:26 +0000)
(they #define strtoul to something that will break compilation,
and it successfully breaks the win32 IPv6 headers)

main/php_network.h

index 6205a1a2dc78b17d1129fb58b8f6bb22f51fe2a3..68665b9cae14f99a0a0e26013f3712f98908a44f 100644 (file)
@@ -27,6 +27,9 @@
 # endif
 # undef FD_SETSIZE
 # include "arpa/inet.h"
+  /* Apache folks decided that strtoul was evil and redefined
+   * it to something that breaks the windows headers */
+# undef strtoul
 /* defines socklen_t and some IPV6 stuff */
 # include <ws2tcpip.h>
 # if HAVE_WSPIAPI_H