psutil
psutil copied to clipboard
build fix for Mac OS, Apple Silicon
On MacOS, arm64 IFM_1000_TX and IFM_1000_T are the same value, causing a build failure.
Summary
- OS: Mac OS, on Apple Silicon (arm64)
- Bug fix: yes
- Type: build failure
- Fixes: https://github.com/giampaolo/psutil/issues/1945
Description
When building on MacOS,arm64:
psutil/_psutil_posix.c:514:21: error: duplicate case value '16'
case(IFM_1000_T):
^
psutil/_psutil_posix.c:508:21: note: previous case defined here
case(IFM_1000_TX):
^
1 error generated.
error: command '/usr/bin/xcrun' failed with exit code 1
@giampaolo what needs to happen for this to get reviewed?