diff libnnchat.h @ 365:88ac689d11bc

Win32/MinGW specific fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 11:24:25 +0300
parents b465a17ffa47
children ebbe97f2a2a5
line wrap: on
line diff
--- a/libnnchat.h	Thu Jun 23 11:14:06 2011 +0300
+++ b/libnnchat.h	Thu Jun 23 11:24:25 2011 +0300
@@ -8,9 +8,12 @@
 
 #include <stdio.h>
 #include <unistd.h>
+#include "th_types.h"
 #ifdef __WIN32
 #include <windows.h>
 #include <winsock.h>
+typedef uint16_t in_port_t;
+typedef uint32_t in_addr_t;
 #else
 #include <sys/select.h>
 #include <sys/socket.h>