diff options
author | Rickard Green <[email protected]> | 2019-01-28 14:39:17 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2019-01-29 16:56:48 +0100 |
commit | d443097778e22c51173aaa22b71303b05a89cf84 (patch) | |
tree | eb9f6dde2a685f476ca43c2740bd3660f30899a1 /lib/erl_interface/src/misc | |
parent | eaeec753c035c2214be2930290a0a6de411566b0 (diff) | |
download | otp-d443097778e22c51173aaa22b71303b05a89cf84.tar.gz otp-d443097778e22c51173aaa22b71303b05a89cf84.tar.bz2 otp-d443097778e22c51173aaa22b71303b05a89cf84.zip |
Fix build of erl_interface on BSD
Diffstat (limited to 'lib/erl_interface/src/misc')
-rw-r--r-- | lib/erl_interface/src/misc/ei_portio.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/erl_interface/src/misc/ei_portio.c b/lib/erl_interface/src/misc/ei_portio.c index 726b1af82d..368c56546b 100644 --- a/lib/erl_interface/src/misc/ei_portio.c +++ b/lib/erl_interface/src/misc/ei_portio.c @@ -19,6 +19,9 @@ * */ + +#include "eidef.h" + #ifdef __WIN32__ #include <winsock2.h> #include <windows.h> @@ -47,10 +50,8 @@ static unsigned long param_one = 1; #include <taskLib.h> #include <inetLib.h> #include <selectLib.h> -#include <sys/types.h> #include <ioLib.h> #include <unistd.h> -#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> @@ -65,7 +66,6 @@ static unsigned long param_one = 1; #else /* other unix */ #include <stdlib.h> -#include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <fcntl.h> @@ -86,6 +86,7 @@ static unsigned long param_one = 1; /* common includes */ +#include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -94,7 +95,9 @@ static unsigned long param_one = 1; #else #include <time.h> #endif -#include "eidef.h" +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif #include "ei_portio.h" #include "ei_internal.h" |