aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-08-12 10:00:48 +0200
committerLukas Larsson <[email protected]>2019-08-13 08:09:40 +0200
commitb5ab81f3617bb9cb936beaacadae967d3c9ce541 (patch)
treeb8bbe5e03b7ef696673afc8e9c9cb96eb4f1f797 /erts/emulator/sys/unix
parent18e2d852469fc3c3cdf287de5ca1ed4c73c71c4d (diff)
downloadotp-b5ab81f3617bb9cb936beaacadae967d3c9ce541.tar.gz
otp-b5ab81f3617bb9cb936beaacadae967d3c9ce541.tar.bz2
otp-b5ab81f3617bb9cb936beaacadae967d3c9ce541.zip
erts: Restructure include of hash.h to work with inline
erl_child_setup is linked together with hash.o so we need to inline any functions into it when running in debug mode.
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r--erts/emulator/sys/unix/erl_child_setup.c5
-rw-r--r--erts/emulator/sys/unix/sys_drivers.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/erl_child_setup.c b/erts/emulator/sys/unix/erl_child_setup.c
index 9241660069..8f261761db 100644
--- a/erts/emulator/sys/unix/erl_child_setup.c
+++ b/erts/emulator/sys/unix/erl_child_setup.c
@@ -63,10 +63,13 @@
#include "erl_driver.h"
#include "sys_uds.h"
-#include "hash.h"
#include "erl_term.h"
#include "erl_child_setup.h"
+#undef ERTS_GLB_INLINE_INCL_FUNC_DEF
+#define ERTS_GLB_INLINE_INCL_FUNC_DEF 1
+#include "hash.h"
+
#define SET_CLOEXEC(fd) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)
#if defined(__ANDROID__)
diff --git a/erts/emulator/sys/unix/sys_drivers.c b/erts/emulator/sys/unix/sys_drivers.c
index 92020c6f35..870d0bd28a 100644
--- a/erts/emulator/sys/unix/sys_drivers.c
+++ b/erts/emulator/sys/unix/sys_drivers.c
@@ -55,6 +55,7 @@
#define WANT_NONBLOCKING /* must define this to pull in defs from sys.h */
#include "sys.h"
+#include "erl_osenv.h"
#include "erl_threads.h"