diff options
author | Benjamin Cohen <bencoh@notk.org> | 2014-02-04 13:54:19 +0100 |
---|---|---|
committer | Cedric Bail <cedric.bail@free.fr> | 2014-05-01 18:12:11 +0200 |
commit | 9ab617af28f455885b80abb6ff2804036e37d0ad (patch) | |
tree | f50238f9bba0ec3b1dcc3ee8c3bb4567250be879 | |
parent | 14a82a1cf35f20ff25bf984bbc0d19d782492dca (diff) | |
download | efl-devs/cedric/macos.tar.gz |
configure: fix net/if.h detection on osx (10.7)devs/cedric/macos
-rw-r--r-- | configure.ac | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c72bb32dbb..fe8539fa69 100644 --- a/configure.ac +++ b/configure.ac @@ -2088,7 +2088,6 @@ AC_CHECK_HEADERS([ \ arpa/inet.h \ langinfo.h \ features.h \ -net/if.h \ netinet/in.h \ netinet/tcp.h \ sys/prctl.h \ @@ -2102,6 +2101,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 |