mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
ptp: Don't use SIOCGIFHWADDR on Apple
Just #ifdef the code for now, this should be implemented around IOKit later instead of using ioctls.
This commit is contained in:
parent
55f79dd195
commit
3af74817c1
1 changed files with 7 additions and 1 deletions
|
@ -270,9 +270,14 @@ setup_sockets (void)
|
|||
|
||||
/* 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;
|
||||
|
||||
|
@ -329,6 +334,7 @@ setup_sockets (void)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!success) {
|
||||
g_warning ("can't get any MAC address, using random clock id");
|
||||
|
|
Loading…
Reference in a new issue