Skip to content

Commit 7b20b4c

Browse files
authored
Merge pull request #73 from ezyang/pr/fix-segfault
Fix segfault from inconsistent macro use.
2 parents d73ba58 + 748e322 commit 7b20b4c

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)