psutil icon indicating copy to clipboard operation
psutil copied to clipboard

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

Open sevan opened this issue 10 months ago • 0 comments

Summary

  • OS: OS X 10.4
  • Architecture: PowerPC
  • Psutil version: 5.9.8
  • Python version: 2.7.18
  • Type: core

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.

sevan avatar Apr 22 '24 12:04 sevan