OSDN Git Service

uapi/if_ether.h: prevent redefinition of struct ethhdr
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 3 Jan 2018 22:14:21 +0000 (23:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jan 2018 19:30:52 +0000 (14:30 -0500)
commit6926e041a8920c8ec27e4e155efa760aa01551fd
tree84c94bc8ffb7e5738793ea78fd996a5294da94bf
parent7bbfe00e025240505db3e04c3b296d7c023b2a26
uapi/if_ether.h: prevent redefinition of struct ethhdr

Musl provides its own ethhdr struct definition. Add a guard to prevent
its definition of the appropriate musl header has already been included.

glibc does not implement this header, but when glibc will implement this
they can just define __UAPI_DEF_ETHHDR 0 to make it work with the
kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_ether.h
include/uapi/linux/libc-compat.h