]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix IP_PKTINFO related compilation failure on NetBSD 7.0
authorGert Doering <gert@greenie.muc.de>
Fri, 16 Sep 2016 19:02:42 +0000 (21:02 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 17 Sep 2016 10:24:02 +0000 (12:24 +0200)
commit7efa60d9790e029b8f9efd6a0ca06312d31d3420
tree99033989b5d2cd98ed3e24218688986bbb2f073a
parenta85ba0e06badf9932e80deb53b68f50611943c6e
Fix IP_PKTINFO related compilation failure on NetBSD 7.0

NetBSD has introduced IP_PKTINFO and struct in_pktinfo, but does not
have the "ipi_spec_dst" structure element, causing compilation errors.

Introduce a check for that (AC_CHECK_MEMBER) in configure.ac, and
change all "#ifdef HAVE_IN_PKTINFO" to also check "HAVE_IPI_SPEC_DST".

Patch inspired by NetBSD pkgsrc patch set.

(Note: with that patch, OpenVPN --multihome is still broken for IPv4
on NetBSD 7.0.1 / amd64, but that's a different issue)

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20160916190242.44897-1-gert@greenie.muc.de>
URL: http://www.mail-archive.com/search?l=mid&q=20160916190242.44897-1-gert@greenie.muc.de
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac
src/openvpn/init.c
src/openvpn/socket.c
src/openvpn/socket.h