Skip to contentSkip to conversation

Compiling with MinGW 3.1.0-1

Openvpn-devel Christof Meerwald 1 participant 1 message Feb 16, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I had to apply the following patch to make OpenVPN 1.6-beta6 compile with MinGW 3.1.0-1:

config-win32.h +3 -1
diff -ur openvpn-1.6_beta6.orig/config-win32.h openvpn-1.6_beta6/config-win32.h
@@ -36,6 +36,8 @@
 
 #include <windows.h>
 #include <winsock2.h>
+#include <unistd.h>
+#include <fcntl.h>
 
 #define sleep(x) Sleep((x)*1000)
 
@@ -43,7 +45,7 @@
 #define srandom srand
 
 typedef unsigned int in_addr_t;
-typedef unsigned int ssize_t;
+/* typedef unsigned int ssize_t; */
 
 /* Should we print debug info from driver? */
 /* #define TAP_WIN32_DEBUG */

bye, Christof

Signature · 2 lines
http://cmeerw.org                                 JID: [email protected]...
mailto cmeerw at web.de