]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
autoconf: Add required headers to net/if.h test
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 23 Apr 2011 15:28:49 +0000 (11:28 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 25 Apr 2011 14:29:15 +0000 (07:29 -0700)
On Darwin, net/if.h is only usable if sys/socket.h is included first.
Do so, to stop autoconf from warning about this test.

Change-Id: I9e7a2642cce86c5ad6ebb3ae3cb60401dd9c26cf
Reviewed-on: http://gerrit.openafs.org/4535
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
acinclude.m4

index adc8667b89a2e5cfbbe1e938dae677d02f93f628..1cddad17c4a4241f6cdb37160ad38ba6d5c7d85b 100644 (file)
@@ -1229,7 +1229,6 @@ AC_CHECK_HEADERS([ \
                   math.h \
                   mntent.h \
                   ncurses.h \
-                  net/if.h \
                   netdb.h \
                   netinet/in.h \
                   pwd.h \
@@ -1276,10 +1275,16 @@ AC_CHECK_HEADERS([ \
                   unistd.h \
                   windows.h \
                ])
+AC_CHECK_HEADERS([net/if.h],[],[],[AC_INCLUDES_DEFAULT
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif])
+
 AC_CHECK_HEADERS([netinet/if_ether.h],[],[],[AC_INCLUDES_DEFAULT
 #ifdef HAVE_NET_IF_H
 # include <net/if.h>
 #endif])
+
 AC_CHECK_HEADERS([security/pam_modules.h],[],[],[AC_INCLUDES_DEFAULT
 #ifdef HAVE_SECURITY_PAM_APPL_H
 # include <security/pam_appl.h>