fix: compatibility for kIOMainPortDefault on older macOS SDKs by niu541412 · Pull Request #2140 · fastfetch-cli/fastfetch

Apple renamed kIOMasterPortDefault to kIOMainPortDefault starting with macOS 12. This patch adds a preprocessor check to maintain compatibility with older development environments. Both kIOMasterPortDefault or kIOMainPortDefault are synonyms for 0.

Refs:
kIOMainPortDefault
kIOMasterPortDefault

Summary

Related issue (required for new logos for new distros)

Closes #

Changes

Checklist

  • I have tested my changes locally.