]> granicus.if.org Git - handbrake/commitdiff
gtk: socket(2) is defined in sys/socket.h in FreeBSD.
authorYuichiro NAITO <naito.yuichiro@gmail.com>
Mon, 25 Dec 2017 07:36:26 +0000 (16:36 +0900)
committerBradley Sepos <bradley@bradleysepos.com>
Sat, 13 Jan 2018 05:03:38 +0000 (00:03 -0500)
gtk/src/callbacks.c

index edc9c6a2a22785811f7551210986194f72b5f3d1..28400cef039ab21d49945a71b0f7359a7d6946bf 100644 (file)
@@ -46,6 +46,9 @@
 #include <dbus/dbus-glib.h>
 #include <dbus/dbus-glib-lowlevel.h>
 
+#if defined( __FreeBSD__ )
+#include <sys/socket.h>
+#endif
 #include <netinet/in.h>
 #include <netdb.h>
 
@@ -5865,4 +5868,3 @@ void ghb_container_empty(GtkContainer *c)
 {
     gtk_container_foreach(c, container_empty_cb, NULL);
 }
-