pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python25 Fix build under Mac OS X Snow Leopard.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c85f768a2ff2
branches:  trunk
changeset: 399072:c85f768a2ff2
user:      tron <tron%pkgsrc.org@localhost>
date:      Sat Sep 12 22:24:06 2009 +0000

description:
Fix build under Mac OS X Snow Leopard.

diffstat:

 lang/python25/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 7ddd44d6eeb9 -r c85f768a2ff2 lang/python25/Makefile
--- a/lang/python25/Makefile    Sat Sep 12 22:22:59 2009 +0000
+++ b/lang/python25/Makefile    Sat Sep 12 22:24:06 2009 +0000
@@ -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 @@
 # 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



Home | Main Index | Thread Index | Old Index