windows build fixes

This commit is contained in:
CJ van den Berg 2024-06-05 20:32:30 +02:00
parent 3121af2ec4
commit 1d116f8fa8
15 changed files with 137 additions and 31 deletions

View file

@ -3,7 +3,12 @@
#include "cbor.hpp"
#include <cstring>
#if !defined(_WIN32)
#include <netinet/in.h>
#else
#include <in6addr.h>
#endif
namespace cbor {

View file

@ -1,10 +1,15 @@
#pragma once
#include <memory>
#include <netinet/in.h>
#include <string_view>
#include <vector>
#if !defined(_WIN32)
#include <netinet/in.h>
#else
#include <in6addr.h>
#endif
using port_t = unsigned short;
namespace thespian::tcp {