giampaolo / psutil

Cross-platform lib for process and system monitoring in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sevan opened this issue · 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.