[vlc-commits] Win32: fix compilation

Jean-Baptiste Kempf git at videolan.org
Mon Jun 25 16:47:09 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jun 25 16:25:15 2012 +0200| [df8462b3924c74c2e10ceb65d9504ef0c8d387cc] | committer: Jean-Baptiste Kempf

Win32: fix compilation
(cherry picked from commit 95da9d5aa0b67f269de4d62c3c098755d2527d81)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/access/file.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/access/file.c b/modules/access/file.c
index a7d1126..293f6d3 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -193,9 +193,11 @@ int FileOpen( vlc_object_t *p_this )
         goto error;
     }
 
+#ifdef S_ISSOCK
     if (!S_ISFIFO (st.st_mode) && !S_ISSOCK (st.st_mode))
         /* Clear non-blocking mode when not useful or not specified */
         fcntl (fd, F_SETFL, fcntl (fd, F_GETFL) & ~O_NONBLOCK);
+#endif
 
     /* Directories can be opened and read from, but only readdir() knows
      * how to parse the data. The directory plugin will do it. */



More information about the vlc-commits mailing list