diff options
author | Sverker Eriksson <[email protected]> | 2018-03-15 17:21:04 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-03-20 15:33:45 +0100 |
commit | 836b90884f9abff3a82b2cee8bada16b23f7ddf7 (patch) | |
tree | 590a433658f93ff135b90d6abda60eb791307585 /erts/emulator/sys/unix/sys_uds.c | |
parent | d171399bb5a0e9f4c6029564ece4fbf89f3c76f8 (diff) | |
download | otp-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/sys_uds.c')
-rw-r--r-- | erts/emulator/sys/unix/sys_uds.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/erts/emulator/sys/unix/sys_uds.c b/erts/emulator/sys/unix/sys_uds.c index dd0a3b03ff..278c6b6ba1 100644 --- a/erts/emulator/sys/unix/sys_uds.c +++ b/erts/emulator/sys/unix/sys_uds.c @@ -18,6 +18,42 @@ * %CopyrightEnd% */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#if defined(__sun__) && !defined(_XOPEN_SOURCE) +#define _XOPEN_SOURCE 500 +#endif + +#include <limits.h> + +#include <sys/types.h> +#include <sys/socket.h> + +#ifdef HAVE_SYS_SOCKETIO_H +# include <sys/socketio.h> +#endif +#ifdef HAVE_SYS_SOCKIO_H +# include <sys/sockio.h> +#endif + +#ifdef HAVE_NET_ERRNO_H +#include <net/errno.h> +#endif + +#ifdef HAVE_DIRENT_H +# include <dirent.h> +#endif + +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif + +#include <stdlib.h> +#include <string.h> +#include <errno.h> + #include "sys_uds.h" int |