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

git version control git at videolan.org
Tue Oct 14 12:06:23 CEST 2008


vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Tue Oct 14 12:06:05 2008 +0200| [68d84670dccbe61605676160a27c5042c12cd543] | committer: Geoffroy Couprie 

check for fcntl()

win32 has a fcntl header but no fcntl function

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

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

diff --git a/configure.ac b/configure.ac
index 67ddd72..c4ad736 100644
--- a/configure.ac
+++ b/configure.ac
@@ -494,6 +494,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 8265ced..5a798b2 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -350,7 +350,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