summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getpath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 1ab94c6..3264e24 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