Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
68d84670
Commit
68d84670
authored
Oct 14, 2008
by
geal
Browse files
check for fcntl()
win32 has a fcntl header but no fcntl function
parent
1bd36deb
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
68d84670
...
...
@@ -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>])
...
...
modules/access/file.c
View file @
68d84670
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment