Skip to content

Commit b61f9e3

Browse files
committed
Fixed: Return DT_UNKNOWN if dirent does not support d_type
1 parent 557f4aa commit b61f9e3

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
@@ -107,7 +107,7 @@ char __hscore_d_type( struct dirent* d )
107107
#ifdef HAVE_DIRENT_D_TYPE
108108
return (d->d_type);
109109
#else
110-
return 0;
110+
return CONST_DT_UNKNOWN;
111111
#endif
112112
}
113113

0 commit comments

Comments
 (0)