]> git.sesse.net Git - vlc/commitdiff
check for fcntl()
authorGeoffroy Couprie <geo.couprie@gmail.com>
Tue, 14 Oct 2008 10:06:05 +0000 (12:06 +0200)
committerGeoffroy Couprie <geo.couprie@gmail.com>
Tue, 14 Oct 2008 10:06:05 +0000 (12:06 +0200)
win32 has a fcntl header but no fcntl function

configure.ac
modules/access/file.c

index 67ddd72493557804845bdae1766e59bd16e4d5ba..c4ad73691e23d1d71091051da8f4b7811a7f1bd4 100644 (file)
@@ -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>])
 
index 8265ced9e6b50ccdb066fd8fe1fe2ac59895c8f5..5a798b236f11c0737d294531f51de8fc342218ee 100644 (file)
@@ -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