Browse Source

Fix getmyip.h Windows build: use winsock2.h instead of sys/socket.h

congestion
Evgeny 5 months ago
parent
commit
27df3355f1
  1. 6
      lib/getmyip.h

6
lib/getmyip.h

@ -9,8 +9,14 @@
#define GETMYIP_H
#include <stdint.h>
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#ifdef __cplusplus
extern "C" {

Loading…
Cancel
Save