Skip to content
Snippets Groups Projects
Commit 7b20b4cb authored by Edward Z. Yang's avatar Edward Z. Yang Committed by GitHub
Browse files

Merge pull request #73 from ezyang/pr/fix-segfault

Fix segfault from inconsistent macro use.
parents d73ba584 748e3224
No related branches found
Tags cabal-install-v1.18.0.8
No related merge requests found
...@@ -110,7 +110,7 @@ char *__hscore_d_name( struct dirent* d ) ...@@ -110,7 +110,7 @@ char *__hscore_d_name( struct dirent* d )
void __hscore_free_dirent(struct dirent *dEnt) void __hscore_free_dirent(struct dirent *dEnt)
{ {
#if HAVE_READDIR_R #if HAVE_READDIR_R && USE_READDIR_R
free(dEnt); free(dEnt);
#endif #endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment