Commit 68d84670 authored by Geoffroy Couprie's avatar Geoffroy Couprie

check for fcntl()

win32 has a fcntl header but no fcntl function
parent 1bd36deb
......@@ -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>])
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment