From: james Date: Tue, 5 Aug 2008 07:52:06 +0000 (+0000) Subject: Workaround for MinGW autoconf issue where HAVE_SETSOCKOPT, X-Git-Tag: v2.1_rc10~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96f77a2e64d79e4fbc47a5844ef2403d71012e5a;p=thirdparty%2Fopenvpn.git 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 --- diff --git a/syshead.h b/syshead.h index e87814eec..358c0bce1 100644 --- a/syshead.h +++ b/syshead.h @@ -54,6 +54,18 @@ #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