]> git.sesse.net Git - vlc/commitdiff
file: Fix compilation on Windows.
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 13 Oct 2008 02:25:16 +0000 (04:25 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 13 Oct 2008 02:25:16 +0000 (04:25 +0200)
modules/access/file.c

index 70a50c527c96138ccdd87a68b0a800deeb0523fb..8265ced9e6b50ccdb066fd8fe1fe2ac59895c8f5 100644 (file)
@@ -349,9 +349,10 @@ static int open_file (access_t *p_access, const char *path)
                         _("VLC could not open the file \"%s\"."), path);
         return -1;
     }
-    fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
 
 #if defined(HAVE_FCNTL_H)
+    fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
+
     /* We'd rather use any available memory for reading ahead
      * than for caching what we've already seen/heard */
 # if defined(F_RDAHEAD)