04-fix-build-on-osx-arm64.patch 477 B

12345678910111213
  1. --- contrib/python/psutil/py3/psutil/arch/osx/cpu.c (index)
  2. +++ contrib/python/psutil/py3/psutil/arch/osx/cpu.c (working tree)
  3. @@ -31,6 +31,10 @@ For reference, here's the git history with original implementations:
  4. #include <IOKit/IOKitLib.h>
  5. #endif
  6. +#if (defined __MAC_OS_X_VERSION_MIN_REQUIRED) && (__MAC_OS_X_VERSION_MIN_REQUIRED < 120000)
  7. +#define kIOMainPortDefault kIOMasterPortDefault
  8. +#endif
  9. +
  10. #include "../../_psutil_common.h"
  11. #include "../../_psutil_posix.h"