[vlc-devel] [PATCH] configure.ac: fix check for net/if.h on osx
david.fuhrmann at gmail.com
david.fuhrmann at gmail.com
Mon Sep 8 19:35:40 CEST 2014
From: David Fuhrmann <dfuhrmann at videolan.org>
---
configure.ac | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 2787391..d346d7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -754,7 +754,16 @@ AC_SUBST(LIBPTHREAD)
dnl Check for headers
dnl POSIX
-AC_CHECK_HEADERS([arpa/inet.h net/if.h pthread.h search.h syslog.h sys/shm.h])
+AC_CHECK_HEADERS([arpa/inet.h pthread.h search.h syslog.h sys/shm.h sys/socket.h])
+AC_CHECK_HEADERS([net/if.h], [], [],
+[
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+])
dnl BSD
AC_CHECK_HEADERS([netinet/udplite.h sys/param.h sys/mount.h])
dnl GNU/Linux
--
1.8.5.2 (Apple Git-48)
More information about the vlc-devel
mailing list