]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
tests: On Unix, include <netinet/in.h> for IPPROTO_TCP
authorSimon McVittie <smcv@collabora.com>
Wed, 1 Jul 2020 15:01:38 +0000 (16:01 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 14 Aug 2020 16:02:46 +0000 (17:02 +0100)
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>
test/test-utils-glib.c

index cac62e3593e6cbe02a34a20109c99187451a1865..2aafb03e78fafbd73a1c389a5d3a110e91b3af3b 100644 (file)
@@ -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>