There was an error while loading. Please reload this page.
1 parent 9925a2f commit 37183a1Copy full SHA for 37183a1
1 file changed
erts/emulator/beam/erl_nif.c
@@ -79,13 +79,25 @@
79
#undef SHMOPEN_USE_POSIX
80
#undef USE_ERTS_DLOPEN_MEM
81
82
+#ifdef HAVE_DLFCN_H
83
+#include <dlfcn.h>
84
+#endif
85
+#ifdef HAVE_FCNTL_H
86
+#include <fcntl.h>
87
88
+#ifdef HAVE_SYS_MMAN_H
89
+#include <sys/mman.h>
90
91
+#ifdef HAVE_SYS_STAT_H
92
+#include <sys/stat.h>
93
94
+#ifdef HAVE_SYS_TIME_H
95
+#include <sys/time.h>
96
97
+#ifdef HAVE_UNISTD_H
98
+#include <unistd.h>
99
100
#if defined(__linux__)
-# include <dlfcn.h>
-# include <fcntl.h>
-# include <sys/mman.h>
-# include <sys/stat.h>
-# include <sys/time.h>
-# include <unistd.h>
101
# if defined(__linux__)
102
# include <sys/syscall.h>
103
# endif
0 commit comments