aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/psutil/py3/patches/04-fix-build-on-osx-arm64.patch
blob: 0d49690eaa1385477fdaa415c318a9adcbf3f4fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- contrib/python/psutil/py3/psutil/arch/osx/cpu.c	(index)
+++ contrib/python/psutil/py3/psutil/arch/osx/cpu.c	(working tree)
@@ -31,6 +31,10 @@ For reference, here's the git history with original implementations:
 #include <IOKit/IOKitLib.h>
 #endif
 
+#if (defined __MAC_OS_X_VERSION_MIN_REQUIRED) && (__MAC_OS_X_VERSION_MIN_REQUIRED < 120000)
+#define kIOMainPortDefault kIOMasterPortDefault
+#endif
+
 #include "../../_psutil_common.h"
 #include "../../_psutil_posix.h"