Skip to content

Commit 748e322

Browse files
committed
Fix segfault from inconsistent macro use.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
1 parent d73ba58 commit 748e322

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
@@ -110,7 +110,7 @@ char *__hscore_d_name( struct dirent* d )
110110

111111
void __hscore_free_dirent(struct dirent *dEnt)
112112
{
113-
#if HAVE_READDIR_R
113+
#if HAVE_READDIR_R && USE_READDIR_R
114114
free(dEnt);
115115
#endif
116116
}

0 commit comments

Comments
 (0)