summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-09-12 22:24:06 +0000
committertron <tron@pkgsrc.org>2009-09-12 22:24:06 +0000
commit0730c85dc10b039b5329b7a1756554e21f089ad8 (patch)
treee7ef291baa4bb9cbe03a3c1a121fb82ae50b6025 /lang
parenta47fe717e5718cbed55d81b7fad079a5c0df03bb (diff)
downloadpkgsrc-0730c85dc10b039b5329b7a1756554e21f089ad8.tar.gz
Fix build under Mac OS X Snow Leopard.
Diffstat (limited to 'lang')
-rw-r--r--lang/python25/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python25/Makefile b/lang/python25/Makefile
index a791c37765e..f561441cdf7 100644
--- a/lang/python25/Makefile
+++ b/lang/python25/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2009/09/12 17:47:17 drochner Exp $
+# $NetBSD: Makefile,v 1.21 2009/09/12 22:24:06 tron Exp $
DISTNAME= Python-2.5.4
PKGNAME= python25-2.5.4
@@ -103,6 +103,10 @@ PLIST.oss= yes
# Make sure python modules can link correctly
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes
+
+. if empty(OS_VERSION:M[1-9].*)
+CFLAGS+= -D_DARWIN_C_SOURCE
+. endif
.endif
PLIST_VARS+= bsddb dll nis no-nis