gst-ptp-helper: #include <sys/socket.h> to fix net/if.h include on OSX 10.6
authorSebastian Dröge <sebastian@centricular.com>
Wed, 7 Oct 2015 10:25:52 +0000 (11:25 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 7 Oct 2015 10:30:14 +0000 (11:30 +0100)
In file included from gst-ptp-helper.c:40:0:
   /usr/include/net/if.h:265:19: error: field 'ifru_addr' has incomplete type
      struct sockaddr ifru_addr;

https://bugzilla.gnome.org/show_bug.cgi?id=756136

libs/gst/helpers/gst-ptp-helper.c

index 12a9097..ad5b4e9 100644 (file)
@@ -37,6 +37,7 @@
 #include <sys/types.h>
 #include <errno.h>
 #include <sys/ioctl.h>
+#include <sys/socket.h>
 #include <net/if.h>
 #include <netinet/in.h>
 #include <string.h>