pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/py-gevent py-gevent: Fix SunOS C99 build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2af622b7686e
branches:  trunk
changeset: 386521:2af622b7686e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Oct 22 15:33:44 2018 +0000

description:
py-gevent: Fix SunOS C99 build.

diffstat:

 net/py-gevent/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 826684140a33 -r 2af622b7686e net/py-gevent/Makefile
--- a/net/py-gevent/Makefile    Mon Oct 22 15:32:01 2018 +0000
+++ b/net/py-gevent/Makefile    Mon Oct 22 15:33:44 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2018/08/19 09:44:28 adam Exp $
+# $NetBSD: Makefile,v 1.12 2018/10/22 15:33:44 jperkin Exp $
 
 DISTNAME=      gevent-1.3.6
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -31,6 +31,12 @@
 # Explicitly disable inotify on SunOS, assumes Linux statfs.
 MAKE_ENV.SunOS+=       ac_cv_header_sys_inotify_h=no
 
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
+BUILDLINK_TRANSFORM.SunOS+=    opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600
+.endif
+
 do-test:
        cd ${WRKSRC}/src/greentest && \
                ${PYTHONBIN} testrunner.py --config known_failures.py



Home | Main Index | Thread Index | Old Index