]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: Add our own <netinet/in.h> and <net/if.h> headers
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 29 Apr 2025 13:20:02 +0000 (15:20 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 30 Apr 2025 05:50:03 +0000 (07:50 +0200)
commitd559f463849a7f178d2fb88f1aa482a809286672
treedae1eb326121ee455c26f57b7fa575f056f36ffe
parent3a03b97d6f7693feddcfbc3b20a4a7580962260f
basic: Add our own <netinet/in.h> and <net/if.h> headers

These glibc headers conflicts with the corresponding linux headers
(<linux/in.h> and <linux/if.h>) and impose an include order (the glibc one
has to be included before any linux header is included). This makes sorting
includes a royal pain so let's define our own versions of these headers using
various linux headers to do all the work and filling in the missing bits
ourselves.
src/basic/in-addr-util.c
src/basic/include/net/if.h [new file with mode: 0644]
src/basic/include/netinet/in.h [new file with mode: 0644]
src/libsystemd-network/icmp6-util.c
src/resolve/resolved-dns-scope.c