Skip to content

Commit 3a7c44e

Browse files
committed
Don't unconditionall include dirent.h
1 parent d01637f commit 3a7c44e

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/eval.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#endif
3131
#endif /* __EMSCRIPTEN__ */
3232
#if WANT_DIR
33-
#include <dirent.h>
3433
#include <sys/stat.h>
3534
#include <sys/types.h>
3635
#endif /* WANT_DIR */

src/runtime/unix/extra.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ get_executable_path(void)
302302
#include <sys/types.h>
303303
#include <unistd.h>
304304
#include <fcntl.h>
305+
#include <dirent.h>
305306

306307
/* Encoding shared with the Haskell side */
307308
#define PERM_SEARCH 8

0 commit comments

Comments
 (0)