[vlc-devel] commit: file: Fix compilation on Windows. (Derk-Jan Hartman )

git version control git at videolan.org
Mon Oct 13 05:41:18 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Mon Oct 13 04:25:16 2008 +0200| [f232b26244f27d4c39cc7efab861e6f969313525] | committer: Derk-Jan Hartman 

file: Fix compilation on Windows.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f232b26244f27d4c39cc7efab861e6f969313525
---

 modules/access/file.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/access/file.c b/modules/access/file.c
index 70a50c5..8265ced 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -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)




More information about the vlc-devel mailing list