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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com