diff options
author | Gert Doering | 2016-10-10 09:39:31 +0200 |
---|---|---|
committer | Gert Doering | 2016-10-10 10:20:39 +0200 |
commit | 6eaa70e80aea7dfd1b3114fcb369a8f72c19ceee (patch) | |
tree | 9f8837bcbe573fda063e67b9500c6b1d6847d65b /configure.ac | |
parent | 3fb246e38fc670c7dfff8ce4521c75c95c766c9e (diff) | |
download | openvpn-6eaa70e80aea7dfd1b3114fcb369a8f72c19ceee.zip openvpn-6eaa70e80aea7dfd1b3114fcb369a8f72c19ceee.tar.gz |
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | 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?]) |