From: Gert Doering Date: Mon, 10 Oct 2016 07:39:31 +0000 (+0200) Subject: Enable -D_XPG4_2 for compilation on Solaris X-Git-Tag: v2.4_alpha1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e2038ed2e77aa7189852304d802382bad140f53;p=thirdparty%2Fopenvpn.git Enable -D_XPG4_2 for compilation on Solaris Solaris' header files to not make necessary macros (like CMSG_SPACE) available unless told "this is the API level we want" - thus, do so. This fixes --multihome on OpenSolaris 11 (at least). (v2: same patch as in 6eaa70e80aea7, reverted in e25d03a4cc0, and now with correct description) trac #750 Signed-off-by: Gert Doering Acked-by: Arne Schwabe Message-Id: <20161010073931.54469-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg12634.html Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index a03abbaac..24b2e468c 100644 --- a/configure.ac +++ b/configure.ac @@ -318,6 +318,7 @@ case "$host" in *-*-solaris*) AC_DEFINE([TARGET_SOLARIS], [1], [Are we running on Solaris?]) AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["S"], [Target prefix]) + CPPFLAGS="$CPPFLAGS -D_XPG4_2" ;; *-*-openbsd*) AC_DEFINE([TARGET_OPENBSD], [1], [Are we running on OpenBSD?])