[PATCH 0/2] Disable unavailable features on older macOS

Joelle van Dyne posted 2 patches 13 hours ago
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(-)
[PATCH 0/2] Disable unavailable features on older macOS
Posted by Joelle van Dyne 13 hours ago
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(-)

-- 
2.41.0