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 +#if STDC_HEADERS +# include +# include +#else +# if HAVE_STDLIB_H +# include +# endif +#endif +#if HAVE_SYS_SOCKET_H +# include +#endif +]) + ### Checks for types ### Checks for structures