summaryrefslogtreecommitdiff
path: root/configure.ac
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 /configure.ac
parent7182f87d514fd5eb84ce4076bcd2bcd9e2f58ae2 (diff)
configure: fix net/if.h detection on osx (10.7)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 84e94db..13420bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2255,7 +2255,6 @@ AC_CHECK_HEADERS([ \
2255arpa/inet.h \ 2255arpa/inet.h \
2256langinfo.h \ 2256langinfo.h \
2257features.h \ 2257features.h \
2258net/if.h \
2259netinet/in.h \ 2258netinet/in.h \
2260netinet/tcp.h \ 2259netinet/tcp.h \
2261sys/prctl.h \ 2260sys/prctl.h \
@@ -2269,6 +2268,21 @@ sys/un.h \
2269 #endif 2268 #endif
2270]) 2269])
2271 2270
2271AC_CHECK_HEADERS([net/if.h], [], [],
2272[#include <stdio.h>
2273#if STDC_HEADERS
2274# include <stdlib.h>
2275# include <stddef.h>
2276#else
2277# if HAVE_STDLIB_H
2278# include <stdlib.h>
2279# endif
2280#endif
2281#if HAVE_SYS_SOCKET_H
2282# include <sys/socket.h>
2283#endif
2284])
2285
2272### Checks for types 2286### Checks for types
2273 2287
2274### Checks for structures 2288### Checks for structures