app-shells/dash: fix compilation on Solaris <=10, bug #657990
authorFabian Groffen <grobian@gentoo.org>
Sun, 17 Jun 2018 14:24:29 +0000 (16:24 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 17 Jun 2018 14:24:39 +0000 (16:24 +0200)
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

index d51383e2eb19529aa141ac28c24bc2116e3c977e..4935f47043ac18a77c52525657b6dd3627d4fc7d 100644 (file)
@@ -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