From 805aaf1621187aa2623c5039d8ef85cd54f35269 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Thu, 5 Jan 2006 10:51:18 +0000 Subject: [PATCH] backport: squash compiler warning on Mac OSX 10.3 --- Modules/getpath.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3