mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 14:38:10 +02:00
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>
(cherry picked from commit f0e526bca8)
This commit is contained in:
parent
ab88811768
commit
c9281ef5a9
1 changed files with 1 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue