summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2022-04-04 17:14:03 +0200
committerGitHub <noreply@github.com>2022-04-04 17:14:03 +0200
commit13aafc9add2234265394595792e1fe79a8ca1c75 (patch)
tree07782d2ec24dc9a36d68402c2d4e3175321e206c /collectors
parent012f8c1d317bf15a54dc0346b6655e1e838cdfc6 (diff)
Better check for IOMainPort on MacOS (#12600)
Diffstat (limited to 'collectors')
-rw-r--r--collectors/macos.plugin/macos_fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/macos.plugin/macos_fw.c b/collectors/macos.plugin/macos_fw.c
index 492490576f..08d1ddadd1 100644
--- a/collectors/macos.plugin/macos_fw.c
+++ b/collectors/macos.plugin/macos_fw.c
@@ -78,7 +78,7 @@ int do_macos_iokit(int update_every, usec_t dt) {
// NEEDED BY: do_bandwidth
struct ifaddrs *ifa, *ifap;
-#if !__is_identifier(IOMainPort) /* macOS >= 12.0 */
+#if !defined(MAC_OS_VERSION_12_0) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_VERSION_12_0)
#define IOMainPort IOMasterPort
#endif