this added a dependency on uring headers where it wasn't necessary.
pick_address.cc was relying on that for the IFF_UP define
Signed-off-by: Casey Bodley <cbodley@redhat.com>
#include <exception>
+#include <boost/asio/error.hpp>
#include "common/error_code.h"
#pragma GCC diagnostic push
#include <netdb.h>
-#include <boost/system/error_code.hpp>
-#include <boost/asio.hpp>
+#include <boost/system.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#include <bitset>
#include <netdb.h>
#include <netinet/in.h>
+#ifdef _WIN32
+#include <ws2ipdef.h>
+#else
+#include <arpa/inet.h> // inet_pton()
+#include <net/if.h> // IFF_UP
+#endif
#include <string>
#include <string.h>
#include <vector>