summaryrefslogtreecommitdiff
path: root/src/net/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/udp.h')
-rw-r--r--src/net/udp.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/net/udp.h b/src/net/udp.h
index a9a38f6..ded5a6d 100644
--- a/src/net/udp.h
+++ b/src/net/udp.h
@@ -1,15 +1,26 @@
#ifndef MY_UDP
-#include <netinet/in.h>
+#ifndef __WIN32__
+# include <netinet/in.h>
+#else
+# include <windows.h>
+# include <wininet.h>
+#endif
#define MY_UDP
+#ifdef __WIN32__
#define SUPPORT_IPv6
+#endif
typedef struct struct_sock_udp_t
{
+#ifndef __WIN32__
int sock;
+#else
+ SOCKET sock;
+#endif
int proto;
#ifdef SUPPORT_IPv6