Skip to content

Commit 0ffcf8f

Browse files
committed
Fixed: Return DT_UNKNOWN if dirent does not support d_type
1 parent b7d3595 commit 0ffcf8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cbits/HsUnix.c

+1-1
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)