[vlc-commits] configure.ac: fix check for net/if.h on osx
David Fuhrmann
git at videolan.org
Wed Sep 10 19:05:09 CEST 2014
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Sep 8 19:34:36 2014 +0200| [e9701c69f08bf0ecd732d56490928dbe869c35ed] | committer: David Fuhrmann
configure.ac: fix check for net/if.h on osx
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9701c69f08bf0ecd732d56490928dbe869c35ed
---
configure.ac | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 072ac34..d3d5517 100644
--- a/configure.ac
+++ b/configure.ac
@@ -754,7 +754,12 @@ 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], [], [],
+[
+#include <sys/types.h>
+#include <sys/socket.h>
+])
dnl BSD
AC_CHECK_HEADERS([netinet/udplite.h sys/param.h sys/mount.h])
dnl GNU/Linux
More information about the vlc-commits
mailing list