References: <20161010073931.54469-1-gert@...1296...> From: Arne Schwabe Message-ID: <4d6e2fff-9d0a-8d78-81ab-3e2438d5627f@...1227...> Date: Mon, 10 Oct 2016 10:02:58 +0200 MIME-Version: 1.0 In-Reply-To: <20161010073931.54469-1-gert@...1296...> Subject: Re: [Openvpn-devel] [PATCH] Enable -D_SVR4_2 for compilation on Solaris List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Gert Doering , openvpn-devel@lists.sourceforge.net I cannot test Solaris but the code looks good enough, so ACK Arne Am 10.10.16 um 09:39 schrieb Gert Doering: > 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). > > trac #750 > > Signed-off-by: Gert Doering > --- > configure.ac | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/configure.ac b/configure.ac > index a03abba..24b2e46 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?])