Unverified Commit 6f249830 authored by Dominik Charousset's avatar Dominik Charousset Committed by GitHub

Merge pull request #1009

Add sys/types.h for FreeBSD
parents 03dfce58 429b6690
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "caf/scheduler/abstract_coordinator.hpp" #include "caf/scheduler/abstract_coordinator.hpp"
// clang-format off
#ifdef CAF_WINDOWS #ifdef CAF_WINDOWS
# ifndef WIN32_LEAN_AND_MEAN # ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
...@@ -63,11 +64,11 @@ ...@@ -63,11 +64,11 @@
# include <cerrno> # include <cerrno>
# include <fcntl.h> # include <fcntl.h>
# include <netdb.h> # include <netdb.h>
# include <sys/types.h>
# include <netinet/in.h> # include <netinet/in.h>
# include <netinet/ip.h> # include <netinet/ip.h>
# include <netinet/tcp.h> # include <netinet/tcp.h>
# include <sys/socket.h> # include <sys/socket.h>
# include <sys/types.h>
# include <unistd.h> # include <unistd.h>
# ifdef CAF_POLL_MULTIPLEXER # ifdef CAF_POLL_MULTIPLEXER
# include <poll.h> # include <poll.h>
...@@ -76,6 +77,7 @@ ...@@ -76,6 +77,7 @@
# else # else
# error "neither CAF_POLL_MULTIPLEXER nor CAF_EPOLL_MULTIPLEXER defined" # error "neither CAF_POLL_MULTIPLEXER nor CAF_EPOLL_MULTIPLEXER defined"
# endif # endif
// clang-format on
#endif #endif
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
# include <ws2tcpip.h> # include <ws2tcpip.h>
# include <ws2ipdef.h> # include <ws2ipdef.h>
#else #else
# include <sys/types.h>
# include <arpa/inet.h> # include <arpa/inet.h>
# include <cerrno> # include <cerrno>
# include <netinet/in.h> # include <netinet/in.h>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "caf/io/network/protocol.hpp" #include "caf/io/network/protocol.hpp"
// clang-format off
#ifdef CAF_WINDOWS #ifdef CAF_WINDOWS
# ifndef WIN32_LEAN_AND_MEAN # ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
...@@ -47,12 +48,14 @@ ...@@ -47,12 +48,14 @@
# include <arpa/inet.h> # include <arpa/inet.h>
# include <cerrno> # include <cerrno>
# include <fcntl.h> # include <fcntl.h>
# include <sys/types.h>
# include <netinet/in.h> # include <netinet/in.h>
# include <netinet/ip.h> # include <netinet/ip.h>
# include <netinet/tcp.h> # include <netinet/tcp.h>
# include <sys/socket.h> # include <sys/socket.h>
# include <unistd.h> # include <unistd.h>
#endif #endif
// clang-format on
using std::string; using std::string;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment