]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Windows cross-compile cleanup
authorAlon Bar-Lev <alon.barlev@gmail.com>
Fri, 4 Mar 2011 21:14:33 +0000 (23:14 +0200)
committerDavid Sommerseth <davids@redhat.com>
Thu, 24 Mar 2011 20:58:25 +0000 (21:58 +0100)
commitaab2f95439c28e2aa9358dbfe1ce7a15c774a766
tree389987dc6318dc633e528d54276645b09b35f8f4
parentae32ea5919c156902bcdc1a4f2555d00d6109e32
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>
acinclude.m4
configure.ac
syshead.h
tap-win32/common.h