]> git.ipfire.org Git - thirdparty/lldpd.git/commit
include: don't ship `linux/socket.h`
authorVincent Bernat <bernat@luffy.cx>
Tue, 31 Dec 2013 14:00:23 +0000 (15:00 +0100)
committerVincent Bernat <bernat@luffy.cx>
Tue, 31 Dec 2013 14:00:23 +0000 (15:00 +0100)
commit69a7ffa0bac894240d5817a531158440be549565
tree40209cbd3d2bd483e0a063953119ce84d5098689
parentafe3dabf9eedf05edfe5c455a863971ab53dce42
include: don't ship `linux/socket.h`

It needs to be paired with `sys/socket.h` (and we don't want to ship it
as it is bound to userland interface). On older libc, like Android's
bionic, `sys/socket.h` is almost empty and all the definitions,
including non-kernel related ones, are in `linux/socket.h`. If we ship
our version of `linux/socket.h`, we have an empty `linux/socket.h` and
an empty `sys/socket.h` and almost no definitions.

Since `linux/netlink.h` extract `__kernel_sa_family_t` from
`linux/socket.h` and we don't have it anymore, we just replace its
definition by `unsigned short`. Being a Linux kernel interface, it is
quite unlikely to change anytime soon.
include/linux/netlink.h
include/linux/socket.h [deleted file]