@cryptotaxi247 / netdata-1 / commits / 13aafc9ad

Better check for IOMainPort on MacOS (#12600)

Vladimir Kobal committed Apr 4, 2022 at 17:14 UTC 13aafc9add2234265394595792e1fe79a8ca1c75
1 file changed +1 -1
collectors/macos.plugin/macos_fw.c
+1 -1
@@ -78,7 +78,7 @@ int do_macos_iokit(int update_every, usec_t dt) {
78 // NEEDED BY: do_bandwidth
79 struct ifaddrs *ifa, *ifap;
80
81 -#if !__is_identifier(IOMainPort) /* macOS >= 12.0 */
81 +#if !defined(MAC_OS_VERSION_12_0) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_VERSION_12_0)
82 #define IOMainPort IOMasterPort
83 #endif
84