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

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


vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Mon Oct 13 04:27:06 2008 +0200| [acf6c18fbdd14801ff0b5fd5e9bb75abb0bc6478] | committer: Derk-Jan Hartman 

file: Fix compilation on Windows

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

 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 f2154b3..dcc35f6 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -380,9 +380,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