diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-05 07:52:06 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-05 07:52:06 +0000 |
commit | 96f77a2e64d79e4fbc47a5844ef2403d71012e5a (patch) | |
tree | 556073bacbe1c6c3e410e00da28f9b2437ae680a /syshead.h | |
parent | Added additional warnings to flag common gotchas: (diff) | |
download | openvpn-96f77a2e64d79e4fbc47a5844ef2403d71012e5a.tar.xz |
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
Diffstat (limited to '')
-rw-r--r-- | syshead.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |