Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemeowx2 committed Dec 11, 2019
1 parent 2d53007 commit 044ff71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions base/include/base/slp_addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
#define SLP_ADDR_H

#include <stdint.h>
#if !defined(_WIN32)
#if defined(_WIN32)
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netinet/in.h>
#endif

struct slp_addr_in {
int8_t sin_len;
sa_family_t sin_family;
uint16_t sin_family;
union {
struct sockaddr addr;
struct sockaddr_in6 ipv6;
Expand Down

0 comments on commit 044ff71

Please sign in to comment.