From: Skip Montanaro Date: Thu, 5 Jan 2006 10:51:18 +0000 (+0000) Subject: backport: squash compiler warning on Mac OSX 10.3 X-Git-Tag: v2.4.3c1~153 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=805aaf1621187aa2623c5039d8ef85cd54f35269;p=thirdparty%2FPython%2Fcpython.git backport: squash compiler warning on Mac OSX 10.3 --- diff --git a/Modules/getpath.c b/Modules/getpath.c index 418c683ce663..3264e246a41a 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -381,7 +381,11 @@ calculate_path(void) 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