From c27e70e83fe9539e3cb3fa0bdac14743a7f6a76b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 13 Feb 2016 06:19:52 +0530 Subject: [PATCH] plugin: Only check for S_IFBLK if it is defined Windows does not define S_IFBLK since it doesn't have block devices --- gst/gstplugin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 8bdf1b5..7b5b750 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -1492,7 +1492,12 @@ gst_plugin_ext_dep_extract_env_vars_paths (GstPlugin * plugin, static guint gst_plugin_ext_dep_get_hash_from_stat_entry (GStatBuf * s) { +#ifdef S_IFBLK if (!(s->st_mode & (S_IFDIR | S_IFREG | S_IFBLK | S_IFCHR))) +#else + /* MSVC does not have S_IFBLK */ + if (!(s->st_mode & (S_IFDIR | S_IFREG | S_IFCHR))) +#endif return (guint) - 1; /* completely random formula */ -- 2.7.4