commit:     e9b10da8ccfcff1583c63c83b3762d4fe51a2812
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 17 14:24:29 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jun 17 14:24:39 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b10da8

app-shells/dash: fix compilation on Solaris <=10, bug #657990

Closes: https://bugs.gentoo.org/657990
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-shells/dash/dash-0.5.10.2.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app-shells/dash/dash-0.5.10.2.ebuild 
b/app-shells/dash/dash-0.5.10.2.ebuild
index d51383e2eb1..4935f47043a 100644
--- a/app-shells/dash/dash-0.5.10.2.ebuild
+++ b/app-shells/dash/dash-0.5.10.2.ebuild
@@ -55,6 +55,9 @@ src_configure() {
        # don't redefine stat on Solaris
        if [[ ${CHOST} == *-solaris* ]] ; then
                export ac_cv_func_stat64=yes
+
+               # if your headers strictly adhere to POSIX, you'll need this too
+               [[ ${CHOST##*solaris2.} -le 10 ]] && append-cppflags 
-DNAME_MAX=255
        fi
        append-cppflags -DJOBS=$(usex libedit 1 0)
        use static && append-ldflags -static

Reply via email to