summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2016-02-08 09:42:25 +0100
committerFabian Groffen <grobian@gentoo.org>2016-02-08 09:42:58 +0100
commita47fc95ea7bd53f3cc2e4af1f862fe3ccfa97379 (patch)
tree005ad5143896fbd5bbf20e0d60f1b2ce20da8065 /net-libs/serf
parentnet-p2p/syncthing: set version number during build process (diff)
downloadgentoo-a47fc95ea7bd53f3cc2e4af1f862fe3ccfa97379.tar.gz
gentoo-a47fc95ea7bd53f3cc2e4af1f862fe3ccfa97379.tar.bz2
gentoo-a47fc95ea7bd53f3cc2e4af1f862fe3ccfa97379.zip
net-libs/serf: fix compilation on Solaris
Package-Manager: portage-2.2.20-prefix
Diffstat (limited to 'net-libs/serf')
-rw-r--r--net-libs/serf/serf-1.3.8-r1.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/net-libs/serf/serf-1.3.8-r1.ebuild b/net-libs/serf/serf-1.3.8-r1.ebuild
index c31fb284d26a..8417bec9f53b 100644
--- a/net-libs/serf/serf-1.3.8-r1.ebuild
+++ b/net-libs/serf/serf-1.3.8-r1.ebuild
@@ -4,7 +4,7 @@
EAPI="5"
-inherit eutils scons-utils toolchain-funcs
+inherit eutils scons-utils toolchain-funcs flag-o-matic
DESCRIPTION="HTTP client library"
HOMEPAGE="https://code.google.com/p/serf/"
@@ -32,6 +32,9 @@ src_prepare() {
# https://code.google.com/p/serf/issues/detail?id=133
sed -e "/env.Append(CCFLAGS=\['-O2'\])/d" -i SConstruct
+
+ # need limits.h for PATH_MAX (only when EXTENSIONS is enabled)
+ [[ ${CHOST} == *-solaris* ]] && append-cppflags -D__EXTENSIONS__
}
src_compile() {