]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Workaround for MinGW autoconf issue where HAVE_SETSOCKOPT,
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 5 Aug 2008 07:52:06 +0000 (07:52 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 5 Aug 2008 07:52:06 +0000 (07:52 +0000)
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

syshead.h

index e87814eecb7d598bcdd3f18a80808d1c94171148..358c0bce14be4a374f28793d4a47d6e0beabe574 100644 (file)
--- a/syshead.h
+++ b/syshead.h
 #define sleep(x) Sleep((x)*1000)
 #define random rand
 #define srandom srand
+
+/* MinGW autoconf workaround */
+
+#undef HAVE_SETSOCKOPT
+#define HAVE_SETSOCKOPT 1
+
+#undef HAVE_GETSOCKOPT
+#define HAVE_GETSOCKOPT 1
+
+#undef HAVE_POLL
+#define HAVE_POLL 1
+
 #endif
 
 #ifdef HAVE_SYS_TYPES_H