diff --git a/dev-libs/libassuan/libassuan-2.4.3-r1.ebuild b/dev-libs/libassuan/libassuan-2.4.3-r1.ebuild index 5056ccf653ca2..ab46bc220746e 100644 --- a/dev-libs/libassuan/libassuan-2.4.3-r1.ebuild +++ b/dev-libs/libassuan/libassuan-2.4.3-r1.ebuild @@ -25,6 +25,15 @@ src_prepare() { # for Solaris .so elibtoolize + + if [[ ${CHOST} == *-solaris* ]] ; then + # fix standards conflict + sed -i \ + -e '/_XOPEN_SOURCE/s/500/600/' \ + -e 's/_XOPEN_SOURCE_EXTENDED/_NO&/' \ + -e 's/__EXTENSIONS__/_NO&/' \ + configure || die + fi } src_configure() {