aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/nifs
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-09-21 12:11:21 +0200
committerMicael Karlberg <[email protected]>2018-09-21 12:11:21 +0200
commitceb5ac40d519cc475c6c3252a2e4f87cdcd5b6f0 (patch)
tree5f9657587edb45dbcd8191963956922c2912a75e /erts/emulator/nifs
parent13d10bc60a41f98647d802524ea8ef8fa9af6b39 (diff)
downloadotp-ceb5ac40d519cc475c6c3252a2e4f87cdcd5b6f0.tar.gz
otp-ceb5ac40d519cc475c6c3252a2e4f87cdcd5b6f0.tar.bz2
otp-ceb5ac40d519cc475c6c3252a2e4f87cdcd5b6f0.zip
[socket-nif] Moved include file (FreeBSD)
Diffstat (limited to 'erts/emulator/nifs')
-rw-r--r--erts/emulator/nifs/common/socket_nif.c28
1 files changed, 10 insertions, 18 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c
index 04c3609b32..a3281f040d 100644
--- a/erts/emulator/nifs/common/socket_nif.c
+++ b/erts/emulator/nifs/common/socket_nif.c
@@ -25,22 +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"
#endif
@@ -61,7 +45,6 @@
#include <ctype.h>
#include <sys/types.h>
#include <errno.h>
-#include <netinet/ip.h>
#include <time.h>
#ifdef HAVE_UNISTD_H
@@ -120,6 +103,14 @@
#undef WANT_NONBLOCKING
#include "sys.h"
+
+
+
+/* AND HERE WE MAY HAVE A BUNCH OF DEFINES....SEE INET DRIVER.... */
+
+
+
+
#else /* !__WIN32__ */
#include <sys/time.h>
@@ -135,6 +126,7 @@
#include <rpc/types.h>
#endif
+#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <arpa/inet.h>
@@ -312,7 +304,7 @@ static void (*esock_sctp_freepaddrs)(struct sockaddr *addrs) = NULL;
#endif
#include "sys.h"
-#endif
+#endif /* !__WIN32__ */
#include <erl_nif.h>