Commit f0e526bc authored by Simon McVittie's avatar Simon McVittie
Browse files

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's avatarSimon McVittie <smcv@collabora.com>
parent c91ca6ed
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
# include <windows.h> # include <windows.h>
#else #else
# include <netdb.h> # include <netdb.h>
# include <netinet/in.h>
# include <signal.h> # include <signal.h>
# include <unistd.h> # include <unistd.h>
# include <sys/socket.h> # include <sys/socket.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment