[vlc-devel] commit: check for fcntl() (Geoffroy Couprie )

git version control git at videolan.org
Wed Oct 15 22:30:15 CEST 2008


vlc | branch: 0.9-bugfix | Geoffroy Couprie <geo.couprie at gmail.com> | Tue Oct 14 12:06:05 2008 +0200| [7eeb64260c0c65f8ed0c01974fa9c10965c20fae] | committer: Jean-Paul Saman 

check for fcntl()

win32 has a fcntl header but no fcntl function

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

 configure.ac          |    1 +
 modules/access/file.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index bd078e0..7f30a52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -496,6 +496,7 @@ AC_CHECK_FUNCS(strcasecmp,,[AC_CHECK_FUNCS(stricmp)])
 AC_CHECK_FUNCS(strncasecmp,,[AC_CHECK_FUNCS(strnicmp)])
 AC_CHECK_FUNCS(strcasestr,,[AC_CHECK_FUNCS(stristr)])
 AC_FUNC_ALLOCA
+AC_CHECK_FUNCS(fcntl)
 
 AH_BOTTOM([#include <vlc_fixups.h>])
 
diff --git a/modules/access/file.c b/modules/access/file.c
index dcc35f6..3192481 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -381,7 +381,7 @@ static int open_file (access_t *p_access, const char *path)
         return -1;
     }
 
-# if defined(HAVE_FCNTL_H)
+# if defined(HAVE_FCNTL)
     fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
 
     /* We'd rather use any available memory for reading ahead




More information about the vlc-devel mailing list