diff options
author | recht <recht@pkgsrc.org> | 2005-07-03 19:48:22 +0000 |
---|---|---|
committer | recht <recht@pkgsrc.org> | 2005-07-03 19:48:22 +0000 |
commit | 3454dd63f566eec52754ff4544b1e47719b6f97d (patch) | |
tree | 077d3fe0d31f552da500e675d29075c88a692c53 /lang/python24/patches | |
parent | 20fca53c8ca90cfddab56f64d811e1126c8651c4 (diff) | |
download | pkgsrc-3454dd63f566eec52754ff4544b1e47719b6f97d.tar.gz |
Add devel/gettext-lib as dependency to avoid problems with the locale module not being built.
- fix suggested by Simon Kuhn in PR 29735
Add a patch from darwinports to workaround for deprecated ostat in sys/stat.h on OS X 10.4.
bump PKGREVISION
Diffstat (limited to 'lang/python24/patches')
-rw-r--r-- | lang/python24/patches/patch-an | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lang/python24/patches/patch-an b/lang/python24/patches/patch-an new file mode 100644 index 00000000000..d0e78c02e72 --- /dev/null +++ b/lang/python24/patches/patch-an @@ -0,0 +1,28 @@ +$NetBSD: patch-an,v 1.3 2005/07/03 19:48:22 recht Exp $ + +--- Include/pyport.h.orig 2004-09-23 21:11:21.000000000 +0200 ++++ Include/pyport.h 2005-07-03 20:02:08.000000000 +0200 +@@ -152,11 +152,23 @@ + #if defined(PYOS_OS2) && defined(PYCC_GCC) + #include <sys/types.h> + #endif ++ ++#if (defined __APPLE__) && (!defined _POSIX_C_SOURCE) ++#define TEMPORARILY_DEFINING__POSIX_C_SOURCE /* so we can #undef it later */ ++#define _POSIX_C_SOURCE /* avoid deprecated struct ostat in sys/stat.h */ ++#endif ++ + #include <sys/stat.h> + #elif defined(HAVE_STAT_H) + #include <stat.h> + #endif + ++/* Mac OS X: undefine _POSIX_C_SOURCE if it wasn't defined before */ ++#ifdef TEMPORARILY_DEFINING__POSIX_C_SOURCE ++#undef _POSIX_C_SOURCE ++#undef TEMPORARILY_DEFINING__POSIX_C_SOURCE ++#endif ++ + #if defined(PYCC_VACPP) + /* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */ + #define S_IFMT (S_IFDIR|S_IFCHR|S_IFREG) |