commit:     5c37d89218b82c24a908c318e633f9b65ad07f17
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  4 13:53:38 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jan  4 13:53:38 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c37d892

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(-)

diff --git a/sys-apps/gawk/gawk-4.1.4.ebuild b/sys-apps/gawk/gawk-4.1.4.ebuild
index 7aa9f00..0d421fb 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() {

Reply via email to