[vlc-commits] commit: Also include sys/param.h when trying to detect the presence of sys/ mount.h so that the test works on OpenBSD, as documented by mount(2). ( Brad Smith )

git at videolan.org git at videolan.org
Mon Aug 9 17:47:12 CEST 2010


vlc | branch: master | Brad Smith <brad at comstyle.com> | Sun Aug  8 19:58:51 2010 -0400| [3bc47647d909a49d80f06c6794eb54877523dc10] | committer: Rémi Denis-Courmont 

Also include sys/param.h when trying to detect the presence of sys/mount.h so that the test works on OpenBSD, as documented by mount(2).

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3bc47647d909a49d80f06c6794eb54877523dc10
---

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index e256ea0..6833bd0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -800,13 +800,17 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
 
 dnl Check for headers
 AC_CHECK_HEADERS(getopt.h strings.h locale.h xlocale.h)
-AC_CHECK_HEADERS(fcntl.h sys/time.h sys/ioctl.h sys/stat.h sys/mount.h)
+AC_CHECK_HEADERS(fcntl.h sys/time.h sys/ioctl.h sys/stat.h)
 AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
 AC_CHECK_HEADERS([net/if.h], [], [],
   [
     #include <sys/types.h>
     #include <sys/socket.h>
   ])
+AC_CHECK_HEADERS([sys/mount.h], [], [],
+  [
+    #include <sys/param.h>
+  ])
 if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
 AC_CHECK_HEADERS(machine/param.h sys/shm.h)
 AC_CHECK_HEADERS([linux/version.h linux/dccp.h scsi/scsi.h linux/magic.h])



More information about the vlc-commits mailing list