0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00
openvpn/tap-win32
Alon Bar-Lev aab2f95439 Windows cross-compile cleanup
It should be sufficient to just try to see if socklen_t is defined.
Next, on all platforms it would be int in all other platforms.
And, there is no need to check for the type in monolitic environment
like Windows, as it will be always the same.

Currently it fails cross compile windows in mingw-w64 compiler, as
winsock.h is as follows:
   """
     /* define WINSOCK_API_LINKAGE and WSAAPI for less
      * diff output between winsock.h and winsock2.h, but
      * remember to undefine them at the end of file */
   """
And the macro uses these macros which are internal winsock macros and
should not be used anyway.

Also, when did the autodefs.h went mandatory? Why is it in
tap-win32/common.h while no constant is actually used?

The use of WSA_IO_INCOMPLETE without including winsock2.h is invalid!
Look at http://msdn.microsoft.com/en-us/library/aa921087.aspx

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
2011-03-24 21:58:25 +01:00
..
i386 Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
common.h Windows cross-compile cleanup 2011-03-24 21:58:25 +01:00
constants.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
dhcp.c Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
dhcp.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
endian.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
error.c Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
error.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
hexdump.c Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
hexdump.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
instance.c Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
lock.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
macinfo.c Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
macinfo.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
MAKEFILE This is the start of the BETA21 branch. 2005-09-26 05:28:27 +00:00
mem.c Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
proto.h Implement IPv6 in TUN mode for Windows TAP driver. 2011-03-10 15:31:53 +01:00
prototypes.h Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
resource.rc Added Python-based build system for Windows in 2010-04-22 12:53:31 +00:00
SOURCES.in Replaced config-win32.h with win/config.h.in 2011-03-21 15:15:19 +01:00
tapdrvr.c Implement IPv6 in TUN mode for Windows TAP driver. 2011-03-10 15:31:53 +01:00
types.h Implement IPv6 in TUN mode for Windows TAP driver. 2011-03-10 15:31:53 +01:00