Skip to content

fix building for WIN32

Heiko Hund openvpn-devel 1 version NAK

Status from this message: NAK, that's massively ugly.

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest2 patches 11 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/2define IN6_ARE_ADDR_EQUAL macro for WIN32win32.h+13 -03 replies
1/2define IN6_ARE_ADDR_EQUAL macro for WIN32win32.h+10 -03 replies
2/2don't use struct in6_addr s6_addr32 member anymoresocket.c+7 -94 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/2] fix building for WIN32

Hi,

git master currently fails when cross compiling for WIN32 in Debian testing. Two IPv6 related things were introduced in commits

512cda46b0f65f388e24436cd28d44bdc90fe985 and
8335caf929f21b317a0243a12285e1f04361db25

that are incompatible with Windows. IN6_ARE_ADDR_EQUAL and struct in6_addr.s6_addr32 are not available there.

While MinGW added both features to ws2tcpip.h, the Microsoft Platform SDK headers do not include them and they are (correctly) missing in the MinGW-w64 headers as well.

Following are two patches that try to fix these issues.

Heiko Hund (2):
define IN6_ARE_ADDR_EQUAL macro for WIN32 don't use struct in6_addr s6_addr32 member anymore

 socket.c |   16 +++++++---------
 win32.h  |   13 +++++++++++++
 2 files changed, 20 insertions(+), 9 deletions(-)

Regards
Heiko

Signature · 1 line
1.7.5.4