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 18:03:15 +0000 (19:03 +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 6c753dff732dbd8744b5e45c0c726c0db507d3df..56427419e5ae0e218ee54a24c4529c706c777bcc 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>