]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-59703: restore include of mach-o/dyld.h (gh-112309)
authorNed Deily <nad@python.org>
Wed, 22 Nov 2023 06:20:57 +0000 (01:20 -0500)
committerGitHub <noreply@github.com>
Wed, 22 Nov 2023 06:20:57 +0000 (01:20 -0500)
On older versions of macOS, _NSGetExecutablePath appears to only
be available via macho-o/dyld so macho-o/dyld.h is still needed.

Modules/getpath.c

index be1a9cf9cc47821de09f28c9268a90b8dc0303da..6c1078b89145229e1c1b622d7c5677c962946422 100644 (file)
@@ -18,6 +18,7 @@
 
 #ifdef __APPLE__
 #  include <dlfcn.h>
+#  include <mach-o/dyld.h>
 #endif
 
 /* Reference the precompiled getpath.py */