summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2020-07-01 16:01:38 +0100
committerSimon McVittie <smcv@collabora.com>2020-08-14 17:02:46 +0100
commitf0e526bca8a5e47246c97199f5c388b0bd00d9f3 (patch)
treec74f5eb805560657b3c2a9466e69bf20f6e50a9f
parentc91ca6edad658274607323a438eea7c7c6c5e392 (diff)
tests: On Unix, include <netinet/in.h> for IPPROTO_TCP
Otherwise, dbus doesn't compile on FreeBSD if the GLib-based tests are enabled (which suggests that no FreeBSD user has run those tests successfully). We already include <netinet/in.h> in other places with no conditions or checks other than "is Unix", so apparently it's portable enough that specifically testing for its presence is not necessary. POSIX requires it to exist. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--test/test-utils-glib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-utils-glib.c b/test/test-utils-glib.c
index cac62e35..2aafb03e 100644
--- a/test/test-utils-glib.c
+++ b/test/test-utils-glib.c
@@ -35,6 +35,7 @@
# include <windows.h>
#else
# include <netdb.h>
+# include <netinet/in.h>
# include <signal.h>
# include <unistd.h>
# include <sys/socket.h>