aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix/erl_child_setup.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-03-15 17:21:04 +0100
committerSverker Eriksson <[email protected]>2018-03-20 15:33:45 +0100
commit836b90884f9abff3a82b2cee8bada16b23f7ddf7 (patch)
tree590a433658f93ff135b90d6abda60eb791307585 /erts/emulator/sys/unix/erl_child_setup.c
parentd171399bb5a0e9f4c6029564ece4fbf89f3c76f8 (diff)
downloadotp-836b90884f9abff3a82b2cee8bada16b23f7ddf7.tar.gz
otp-836b90884f9abff3a82b2cee8bada16b23f7ddf7.tar.bz2
otp-836b90884f9abff3a82b2cee8bada16b23f7ddf7.zip
erts: Make sys_memcpy and friends inline functions
to avoid argument-evaluated-twice bugs like in macro DMC_PUSH. Had to shuffle around some #include and #define to make erl_child_setup build debug target.
Diffstat (limited to 'erts/emulator/sys/unix/erl_child_setup.c')
-rw-r--r--erts/emulator/sys/unix/erl_child_setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/sys/unix/erl_child_setup.c b/erts/emulator/sys/unix/erl_child_setup.c
index 57973b10d7..10601529a4 100644
--- a/erts/emulator/sys/unix/erl_child_setup.c
+++ b/erts/emulator/sys/unix/erl_child_setup.c
@@ -56,6 +56,8 @@
#include <stdio.h>
#include <stdarg.h>
#include <sys/wait.h>
+#include <sys/types.h>
+#include <sys/socket.h>
#define WANT_NONBLOCKING