[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 23:22:27 CEST 2010


vlc/vlc-1.1 | branch: master | Brad Smith <brad at comstyle.com> | Sun Aug  8 19:58:51 2010 -0400| [c480e29bcdfef0a21ee7c3aca3174fcfcac2f646] | committer: Jean-Baptiste Kempf 

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>
(cherry picked from commit 3bc47647d909a49d80f06c6794eb54877523dc10)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/configure.ac b/configure.ac
index 8995bf1..cf6fbdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -827,13 +827,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