mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
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>
This commit is contained in:
parent
7bbfe00e02
commit
6926e041a8
2 changed files with 9 additions and 0 deletions
|
@ -264,4 +264,10 @@
|
|||
|
||||
#endif /* __GLIBC__ */
|
||||
|
||||
/* Definitions for if_ether.h */
|
||||
/* allow libcs like musl to deactivate this, glibc does not implement this. */
|
||||
#ifndef __UAPI_DEF_ETHHDR
|
||||
#define __UAPI_DEF_ETHHDR 1
|
||||
#endif
|
||||
|
||||
#endif /* _UAPI_LIBC_COMPAT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue