From: Fabian Groffen Date: Wed, 4 Jan 2017 13:53:38 +0000 (+0100) Subject: sys-apps/gawk: fix compilation on Solaris X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5c37d89218b82c24a908c318e633f9b65ad07f17;p=gentoo.git sys-apps/gawk: fix compilation on Solaris Package-Manager: portage-2.3.0 --- diff --git a/sys-apps/gawk/gawk-4.1.4.ebuild b/sys-apps/gawk/gawk-4.1.4.ebuild index 7aa9f006e6e8..0d421fbc32a5 100644 --- a/sys-apps/gawk/gawk-4.1.4.ebuild +++ b/sys-apps/gawk/gawk-4.1.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -31,6 +31,12 @@ src_prepare() { sed -i \ -e '/check-recursive all-recursive: check-for-shared-lib-support/d' \ extension/Makefile.in || die + # fix standards conflict on Solaris + if [[ ${CHOST} == *-solaris* ]] ; then + sed -i \ + -e '/\<_XOPEN_SOURCE\>/s/$/600/' \ + extension/inplace.c || die + fi } src_configure() {