diff options
author | Micael Karlberg <[email protected]> | 2018-09-21 12:00:05 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-09-21 12:00:05 +0200 |
commit | 37704e1eccc60e2077be13ec0a4c3344d9c04b30 (patch) | |
tree | 27ab001d9cf0e0dfbf73824765804e603bdf1668 /erts/emulator/nifs/common/socket_nif.c | |
parent | e3ace52f8e7d893d170ff5eb60d22c27ab9ec1e5 (diff) | |
download | otp-37704e1eccc60e2077be13ec0a4c3344d9c04b30.tar.gz otp-37704e1eccc60e2077be13ec0a4c3344d9c04b30.tar.bz2 otp-37704e1eccc60e2077be13ec0a4c3344d9c04b30.zip |
[socket-nif] More constant if-def and header include moving
Diffstat (limited to 'erts/emulator/nifs/common/socket_nif.c')
-rw-r--r-- | erts/emulator/nifs/common/socket_nif.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c index c98ab1e514..6564c3c82f 100644 --- a/erts/emulator/nifs/common/socket_nif.c +++ b/erts/emulator/nifs/common/socket_nif.c @@ -25,21 +25,6 @@ #define STATIC_ERLANG_NIF 1 -/* #include <stdio.h> */ -/* #include <stdlib.h> */ -/* #include <stdarg.h> */ -/* #include <string.h> */ -/* #include <unistd.h> */ -/* #include <errno.h> */ -/* #include <netdb.h> */ -/* #include <sys/types.h> */ -/* #include <sys/wait.h> */ -/* #include <sys/socket.h> */ -/* #include <netinet/in.h> */ -/* #include <arpa/inet.h> */ -/* #include <sys/time.h> */ -/* #include <fcntl.h> */ - #ifdef HAVE_CONFIG_H #include "config.h" @@ -61,7 +46,6 @@ #include <ctype.h> #include <sys/types.h> #include <errno.h> -#include <netinet/ip.h> #include <time.h> #ifdef HAVE_UNISTD_H @@ -135,6 +119,7 @@ #include <rpc/types.h> #endif +#include <netinet/ip.h> #include <netinet/tcp.h> #include <netinet/udp.h> #include <arpa/inet.h> |