mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
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:
parent
a123dbd329
commit
c27e70e83f
1 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue