[vlc-commits] directory: don't use S_IFBLK if it's not defined

Steve Lhomme git at videolan.org
Mon Jul 15 13:54:14 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul 12 14:45:51 2019 +0200| [065e2cbc873f3e4fb1569eafff0826c0d7dd85ca] | committer: Steve Lhomme

directory: don't use S_IFBLK if it's not defined

It doesn't exist on pure win32 SDKs (mingw32 with NO_OLDNAME for example).

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

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

diff --git a/modules/access/directory.c b/modules/access/directory.c
index b8d27cc025..0057b5d93e 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -136,11 +136,13 @@ int DirRead (stream_t *access, input_item_node_t *node)
 #endif
         switch (st.st_mode & S_IFMT)
         {
+#ifdef S_IFBLK
             case S_IFBLK:
                 if (!special_files)
                     continue;
                 type = ITEM_TYPE_DISC;
                 break;
+#endif
             case S_IFCHR:
                 if (!special_files)
                     continue;



More information about the vlc-commits mailing list