Skip to content

Commit 51f072c

Browse files
mmhathasufell
authored andcommitted
Fixed: Return DT_UNKNOWN if dirent does not support d_type
1 parent 46f275e commit 51f072c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cbits/HsUnix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ char __hscore_d_type( struct dirent* d )
109109
#ifdef HAVE_DIRENT_D_TYPE
110110
return (d->d_type);
111111
#else
112-
return 0;
112+
return CONST_DT_UNKNOWN;
113113
#endif
114114
}
115115

0 commit comments

Comments
 (0)