Commit 7eeb6426 authored by Geoffroy Couprie's avatar Geoffroy Couprie Committed by Jean-Paul Saman

check for fcntl()

win32 has a fcntl header but no fcntl function
parent 4917f7f3
......@@ -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>])
......
......@@ -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
......
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