summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorYuichiro NAITO <[email protected]>2017-12-25 16:36:26 +0900
committerBradley Sepos <[email protected]>2018-01-13 00:03:38 -0500
commitc47b8f5ab8a049eda618462802ecce72bc4f6a57 (patch)
tree2e9549d6167f01111914d2ae1f5352d81f738f1a /gtk
parent2efdc087baa27bee28c7d48d69b1a96ca1e1ecda (diff)
gtk: socket(2) is defined in sys/socket.h in FreeBSD.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index edc9c6a2a..28400cef0 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -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);
}
-