summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Cohen <bencoh@notk.org>2014-02-04 13:54:19 +0100
committerCedric BAIL <c.bail@partner.samsung.com>2014-06-18 11:34:07 +0200
commitedf621245e7555a68c870eeeab055431f00b8a16 (patch)
tree513683d14ffbc94f9113f20497ffcc5a82ba7a41
parent7182f87d514fd5eb84ce4076bcd2bcd9e2f58ae2 (diff)
downloadefl-edf621245e7555a68c870eeeab055431f00b8a16.tar.gz
configure: fix net/if.h detection on osx (10.7)
-rw-r--r--configure.ac16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 84e94db026..13420bbd10 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2255,7 +2255,6 @@ AC_CHECK_HEADERS([ \
arpa/inet.h \
langinfo.h \
features.h \
-net/if.h \
netinet/in.h \
netinet/tcp.h \
sys/prctl.h \
@@ -2269,6 +2268,21 @@ sys/un.h \
#endif
])
+AC_CHECK_HEADERS([net/if.h], [], [],
+[#include <stdio.h>
+#if STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# if HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+])
+
### Checks for types
### Checks for structures