Module: wine Branch: master Commit: 45284246617cd0bf7555e12abf763be34b923ef5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=45284246617cd0bf7555e12abf...
Author: Sebastian Lackner sebastian@fds-team.de Date: Wed Jul 19 17:26:11 2017 +0200
configure: Improve check for if_nameindex.
Signed-off-by: Sebastian Lackner sebastian@fds-team.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
configure | 3 +++ configure.ac | 3 +++ 2 files changed, 6 insertions(+)
diff --git a/configure b/configure index 58d5929..c099dba 100755 --- a/configure +++ b/configure @@ -16406,6 +16406,9 @@ else #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif #ifdef HAVE_NET_IF_H # include <net/if.h> #endif diff --git a/configure.ac b/configure.ac index ab4203c..533f1e4 100644 --- a/configure.ac +++ b/configure.ac @@ -2248,6 +2248,9 @@ AC_CACHE_CHECK([for if_nameindex],wine_cv_have_if_nameindex, AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif #ifdef HAVE_NET_IF_H # include <net/if.h> #endif]],