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 f0e526bc)
12 jobs for cherry-pick-f0e526bc in 10 minutes and 27 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
manual #4087993
allowed to fail manual
build:buster
passed #4087987
build:cmake

00:06:38

passed #4087984
build:debug

00:10:25

manual #4087989
allowed to fail manual
build:i686-w64-mingw32-cmake
passed #4087988
build:i686-w64-mingw32-debug

00:07:40

manual #4087992
allowed to fail manual
build:jessie
manual #4087986
allowed to fail manual
build:legacy
passed #4087983
build:production

00:08:50

manual #4087985
allowed to fail manual
build:reduced
passed #4087990
build:x86_64-w64-mingw32

00:05:27

manual #4087991
allowed to fail manual
build:x86_64-w64-mingw32-cmake-debug
manual #4087994
allowed to fail manual
build:xenial