Skip to content
Snippets Groups Projects
Commit 9509ebd1 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

build: add missing include for Windows

parent d8f005ca
Branches 0.6.x
No related tags found
No related merge requests found
......@@ -22,16 +22,11 @@
#include <msgpack.hpp>
#ifndef _WIN32
#include <netinet/in.h>
#include <netdb.h>
#ifdef __ANDROID__
typedef uint16_t in_port_t;
#endif
#include <sys/socket.h>
#else
#include <iso646.h>
#include <ws2tcpip.h>
typedef uint16_t sa_family_t;
typedef uint16_t in_port_t;
#include <ws2def.h>
#endif
#include <iostream>
......
......@@ -26,9 +26,16 @@
#ifndef _WIN32
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#ifdef __ANDROID__
typedef uint16_t in_port_t;
#endif
#else
#include <ws2def.h>
#include <ws2tcpip.h>
#include <ws2def.h>
typedef uint16_t sa_family_t;
typedef uint16_t in_port_t;
#endif
#include <chrono>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment