From: Nirbheek Chauhan Date: Sat, 13 Feb 2016 00:49:52 +0000 (+0530) Subject: plugin: Only check for S_IFBLK if it is defined X-Git-Tag: 1.10.4~398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c27e70e83fe9539e3cb3fa0bdac14743a7f6a76b;p=platform%2Fupstream%2Fgstreamer.git plugin: Only check for S_IFBLK if it is defined Windows does not define S_IFBLK since it doesn't have block devices --- 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 */