diff --git a/zeroconf/networkhotplugnotifier.cpp b/zeroconf/networkhotplugnotifier.cpp index 746033e..fdbf21c 100644 --- a/zeroconf/networkhotplugnotifier.cpp +++ b/zeroconf/networkhotplugnotifier.cpp @@ -22,12 +22,14 @@ along with this program. If not, see . #include #include +#if !__APPLE__ #include #include #include #include #include #include +#endif // !__APPLE__ struct NetworkHotplugNotifier::Private { @@ -59,6 +61,7 @@ struct NetworkHotplugNotifier::Private void hotplugThread() { +#if !__APPLE__ int sock = ::socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock < 0) { std::cerr << "Could not create netlink socket: " << errno << std::endl; @@ -103,6 +106,7 @@ struct NetworkHotplugNotifier::Private } } } +#endif // !__APPLE__ } };