]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: let's make things compile on certain old glibc's and kernel headers again...
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jan 2018 19:08:18 +0000 (20:08 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Jan 2018 19:08:18 +0000 (20:08 +0100)
commit5a2dadf1bbf4c7c0b04dddee98a3a6b2a053f868
treef4cada8b3aa9cfee69add1b63a561a688344a22a
parente73c54b838885237438f776b930e3624f8cb57f7
sd-netlink: let's make things compile on certain old glibc's and kernel headers again (#7848)

Let's include netinet/in.h instead of linux/in6.h, as the former is the
official libc location for these definitions, and the latter is a
linux-specific version that conflicts.

This hopefully makes systemd compile on current Semaphore again.

This takes e410b07d2aa64a653bc0e93b77856af41297b84d into consideration,
but makes us use glibc rather than kernel headers.

While we are at it, let's also sort our #include lines. Since kernel
headers are notoriously crappy we won't strictly order them globally,
but first include non-kernel headers in a sorted way, and then include
kernel headers in a somewhat sorted way (i.e. generic stuff first and
somewhat alphabetical, and specific stuff last)
src/libsystemd/sd-netlink/netlink-types.c