plugin: Only check for S_IFBLK if it is defined

Windows does not define S_IFBLK since it doesn't have block devices
This commit is contained in:
Nirbheek Chauhan 2016-02-13 06:19:52 +05:30 committed by Tim-Philipp Müller
parent a123dbd329
commit c27e70e83f

View file

@ -1492,7 +1492,12 @@ gst_plugin_ext_dep_extract_env_vars_paths (GstPlugin * plugin,
static guint static guint
gst_plugin_ext_dep_get_hash_from_stat_entry (GStatBuf * s) 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))) 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; return (guint) - 1;
/* completely random formula */ /* completely random formula */