[vlc-commits] Win32: fix compilation

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


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

Win32: fix compilation

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

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

diff --git a/modules/access/file.c b/modules/access/file.c
index 7794316..c6fd0dc 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -183,9 +183,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