[Python-Dev] buildbot
skip at pobox.com
skip at pobox.com
Thu Jan 5 04:23:07 CET 2006
Ronald> This should do it, although I haven't tested this on OSX 10.3:
Not quite. On my 10.3 system MAC_OS_X_VERSION_10_<N> for <N> in 0, 1, 2, 3,
4 is defined. However, MAC_OS_X_VERSION_MAX_ALLOWED is defined to be
MAC_OS_X_VERSION_10_3.
This works for me (compiles with no warnings, passes all tests).
Skip
% svn diff Modules/getpath.c
Index: Modules/getpath.c
===================================================================
--- Modules/getpath.c (revision 41914)
+++ Modules/getpath.c (working copy)
@@ -381,8 +381,12 @@
NSModule pythonModule;
#endif
#ifdef __APPLE__
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
uint32_t nsexeclength = MAXPATHLEN;
+#else
+ unsigned long nsexeclength = MAXPATHLEN;
#endif
+#endif
/* If there is no slash in the argv0 path, then we have to
* assume python is on the user's $PATH, since there's no
More information about the Python-Dev
mailing list