Fix getmyip.h Windows build: use winsock2.h instead of sys/socket.h
This commit is contained in:
1 parent
e0ce9fefc3
commit
27df3355f1
1 file changed
+8
-2
+8
-2
@@ -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" {
|
||||
|
||||
Reference in new issue
Block a user