Just #ifdef the code for now, this should be implemented around
IOKit later instead of using ioctls.
/* Get a clock id from the MAC address if none was given */
if (clock_id == (guint64) - 1) {
- struct ifreq ifr;
gboolean success = FALSE;
+ /* FIXME: On Apple platforms use IOKit APIs to iterate
+ * network interfaces and get MAC addresses. Think different!
+ */
+#ifndef __APPLE__
+ struct ifreq ifr;
+
if (ifaces) {
gchar **ptr = ifaces;
}
}
}
+#endif
if (!success) {
g_warning ("can't get any MAC address, using random clock id");