[vlc-devel] [PATCH] autoconf patch to fix sys/mount.h presence detction

Brad brad at comstyle.com
Mon Aug 9 02:03:02 CEST 2010


A patch to fix the presence detection of sys/mount.h.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
>From 9884c86acf19ad21d988e0a81ab3ca9471db8dd2 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Sun, 8 Aug 2010 19:58:51 -0400
Subject: [PATCH 2/2] 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).

---
 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])
-- 
1.7.1



More information about the vlc-devel mailing list