diff options
author | Benjamin Cohen <bencoh@notk.org> | 2014-02-04 13:54:19 +0100 |
---|---|---|
committer | Cedric BAIL <c.bail@partner.samsung.com> | 2014-06-18 11:34:07 +0200 |
commit | edf621245e7555a68c870eeeab055431f00b8a16 (patch) | |
tree | 513683d14ffbc94f9113f20497ffcc5a82ba7a41 /configure.ac | |
parent | 7182f87d514fd5eb84ce4076bcd2bcd9e2f58ae2 (diff) |
configure: fix net/if.h detection on osx (10.7)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
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([ \ | |||
2255 | arpa/inet.h \ | 2255 | arpa/inet.h \ |
2256 | langinfo.h \ | 2256 | langinfo.h \ |
2257 | features.h \ | 2257 | features.h \ |
2258 | net/if.h \ | ||
2259 | netinet/in.h \ | 2258 | netinet/in.h \ |
2260 | netinet/tcp.h \ | 2259 | netinet/tcp.h \ |
2261 | sys/prctl.h \ | 2260 | sys/prctl.h \ |
@@ -2269,6 +2268,21 @@ sys/un.h \ | |||
2269 | #endif | 2268 | #endif |
2270 | ]) | 2269 | ]) |
2271 | 2270 | ||
2271 | AC_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 |