From 5c37d89218b82c24a908c318e633f9b65ad07f17 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 4 Jan 2017 14:53:38 +0100 Subject: sys-apps/gawk: fix compilation on Solaris Package-Manager: portage-2.3.0 --- sys-apps/gawk/gawk-4.1.4.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys-apps/gawk') 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() { -- cgit v1.2.3-65-gdbad