mbox series

[0/2] Disable unavailable features on older macOS

Message ID 20241223040945.82871-1-j@getutm.app (mailing list archive)
Headers show
Series Disable unavailable features on older macOS | expand

Message

Joelle van Dyne Dec. 23, 2024, 4:09 a.m. UTC
Some features require APIs introduced in a recent version of macOS. Currently,
this is not checked anywhere and so either the build will fail (if building with
an older version of Xcode) or will throw a warning and then crash if run on an
older machine. The correct way to handle this is with availabilty checks. The
checks are a clang extension that only works on Apple platforms but these files
are only built for Apple platforms already and link with Apple frameworks.

Joelle van Dyne (2):
  vmnet: disable unavailable features on older macOS
  hvf: arm: disable unavailable features on older macOS

 net/vmnet-host.c     | 48 ++++++++++++++++++++++++++------------
 net/vmnet-shared.c   | 23 ++++++++++++++----
 target/arm/hvf/hvf.c | 55 ++++++++++++++++++++++++++++----------------
 net/vmnet-bridged.m  | 18 ++++++++++++---
 4 files changed, 101 insertions(+), 43 deletions(-)