]> granicus.if.org Git - apache/commitdiff
(APACHE_INADDR_NONE) Additionally include sys/types.h, if it is available. Also
authorSascha Schumann <sascha@apache.org>
Wed, 29 Dec 1999 23:41:56 +0000 (23:41 +0000)
committerSascha Schumann <sascha@apache.org>
Wed, 29 Dec 1999 23:41:56 +0000 (23:41 +0000)
added confdefs checks for the other included header files.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84373 13f79535-47bb-0310-9956-ffa450edef68

acinclude.m4

index 9f14dbb41c794c9392e8b481d8976d06a8a78180..ab2f3c1ad920718aec4fa3b7cc5354d6aab20e55 100644 (file)
@@ -147,9 +147,18 @@ dnl checks for missing INADDR_NONE macro
 dnl
 AC_DEFUN(APACHE_INADDR_NONE,[
   AC_TRY_COMPILE([
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
+#endif
 ],[
 unsigned long foo = INADDR_NONE;
 ],[