Browse code

Enable -D_SVR4_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).

trac #750

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
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 <gert@greenie.muc.de>

Gert Doering authored on 2016/10/10 16:39:31
Showing 1 changed files
... ...
@@ -318,6 +318,7 @@ case "$host" in
318 318
 	*-*-solaris*)
319 319
 		AC_DEFINE([TARGET_SOLARIS], [1], [Are we running on Solaris?])
320 320
 		AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["S"], [Target prefix])
321
+		CPPFLAGS="$CPPFLAGS -D_XPG4_2"
321 322
 		;;
322 323
 	*-*-openbsd*)
323 324
 		AC_DEFINE([TARGET_OPENBSD], [1], [Are we running on OpenBSD?])