Annotation of pkgsrc/lang/python39/patches/patch-Modules_getpath.c, revision 1.1
1.1 ! sjmulder 1: $NetBSD$
! 2:
! 3: Support for macOS 11 and Apple Silicon (ARM). Backported from:
! 4: https://github.com/python/cpython/pull/22855
! 5:
! 6: --- Modules/getpath.c.orig 2020-10-05 15:07:58.000000000 +0000
! 7: +++ Modules/getpath.c
! 8: @@ -923,11 +923,7 @@ static PyStatus
! 9: calculate_program_macos(wchar_t **abs_path_p)
! 10: {
! 11: char execpath[MAXPATHLEN + 1];
! 12: -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
! 13: uint32_t nsexeclength = Py_ARRAY_LENGTH(execpath) - 1;
! 14: -#else
! 15: - unsigned long nsexeclength = Py_ARRAY_LENGTH(execpath) - 1;
! 16: -#endif
! 17:
! 18: /* On Mac OS X, if a script uses an interpreter of the form
! 19: "#!/opt/python2.3/bin/python", the kernel only passes "python"
CVSweb <webmaster@jp.NetBSD.org>