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

This commit is contained in:
Evgeny committed 2026-04-24 14:39:12 +03:00
1 parent e0ce9fefc3
commit 27df3355f1
1 file changed
+8 -2
+8 -2
View File
@@ -9,8 +9,14 @@
#define GETMYIP_H
#include <stdint.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#ifdef __cplusplus
extern "C" {