diff options
Diffstat (limited to 'cursor/xcursor.c')
| -rw-r--r-- | cursor/xcursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c index b3fa271..360f7f3 100644 --- a/cursor/xcursor.c +++ b/cursor/xcursor.c @@ -873,7 +873,8 @@ load_all_cursors_from_dir(const char *path, int size, ent = readdir(dir); for(ent = readdir(dir); ent; ent = readdir(dir)) { #ifdef _DIRENT_HAVE_D_TYPE - if (ent->d_type != DT_REG && ent->d_type != DT_LNK) + if (ent->d_type != DT_UNKNOWN && + (ent->d_type != DT_REG && ent->d_type != DT_LNK)) continue; #endif |
