Browse code

Workaround for MinGW autoconf issue where HAVE_SETSOCKOPT, HAVE_GETSOCKOPT, and HAVE_POLL are undefined even though the underlying functions are present.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3181 e7ae566f-a301-0410-adde-c780ea21d3b5

james authored on 2008/08/05 16:52:06
Showing 1 changed files
... ...
@@ -54,6 +54,18 @@
54 54
 #define sleep(x) Sleep((x)*1000)
55 55
 #define random rand
56 56
 #define srandom srand
57
+
58
+/* MinGW autoconf workaround */
59
+
60
+#undef HAVE_SETSOCKOPT
61
+#define HAVE_SETSOCKOPT 1
62
+
63
+#undef HAVE_GETSOCKOPT
64
+#define HAVE_GETSOCKOPT 1
65
+
66
+#undef HAVE_POLL
67
+#define HAVE_POLL 1
68
+
57 69
 #endif
58 70
 
59 71
 #ifdef HAVE_SYS_TYPES_H