Commit 74bb7b0a authored by Joseph Noir's avatar Joseph Noir

Address network header ordering on BSD

parent 0b9f9cb8
......@@ -23,6 +23,7 @@
#include "caf/config.hpp"
// clang-format off
#ifdef CAF_WINDOWS
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
......@@ -42,6 +43,7 @@
# include <ws2ipdef.h>
# include <ws2tcpip.h>
#else // CAF_WINDOWS
# include <sys/types.h>
# include <arpa/inet.h>
# include <cerrno>
# include <fcntl.h>
......@@ -51,3 +53,4 @@
# include <sys/socket.h>
# include <unistd.h>
#endif
// clang-format on
......@@ -28,7 +28,6 @@
#include "caf/logger.hpp"
#include "caf/string_view.hpp"
// clang-format off
#ifdef CAF_WINDOWS
# ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0600
......@@ -36,14 +35,11 @@
# include <iphlpapi.h>
# include <winsock.h>
#else
# include <sys/types.h>
# include <arpa/inet.h>
# include <ifaddrs.h>
# include <net/if.h>
# include <netdb.h>
# include <ifaddrs.h>
# include <sys/ioctl.h>
#endif
// clang-format on
#ifndef HOST_NAME_MAX
# define HOST_NAME_MAX 255
......
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