giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.31k stars 1.39k forks source link

[macOS] Lacking defines in <sys/mount.h> breaks build on legacy OS X #2412

Closed sevan closed 5 months ago

sevan commented 7 months ago

Summary

Description

psutil/arch/osx/disk.c: In function ‘psutil_disk_partitions’:
psutil/arch/osx/disk.c:89: error: ‘MNT_QUARANTINE’ undeclared (first use in this function)
psutil/arch/osx/disk.c:89: error: (Each undeclared identifier is reported only once
psutil/arch/osx/disk.c:89: error: for each function it appears in.)
psutil/arch/osx/disk.c:111: error: ‘MNT_MULTILABEL’ undeclared (first use in this function)
psutil/arch/osx/disk.c:113: error: ‘MNT_NOATIME’ undeclared (first use in this function)

MNT_QUARANTINE, MNT_MULTILABEL, MNT_NOATIME showed up in OS X 10.5.

giampaolo commented 5 months ago

Should be fixed now. Please try and report back if you have time.