Skip to contentSkip to conversation

MingW patch

Openvpn-devel Gisle Vanem 1 participant 1 message May 19, 2004

lore
Share & tools
lore
#0 lore raw

The latest MingW runtime and headers defines 'ssize_t'. So this patch is needed:

config-win32.h.in Wed May 19 16:54:07 2004 renamed from config-win32.h.in Thu May 13 23:56:23 2004 +5 -1
@@ -42,8 +42,12 @@
 #define random rand
 #define srandom srand
 
-typedef unsigned int in_addr_t;
+typedef unsigned long in_addr_t;
+
+#ifndef _SSIZE_T_
+#define _SSIZE_T_
 typedef unsigned int ssize_t;
+#endif
 
 /* Append a label to program startup title */
 //#define DEBUG_LABEL "DEBUG1"

------

And an IPv4-address should not be an 'int'; does OpenVPN work on Win64 btw?

--gv