mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-17 23:37:11 +00:00
uapi: update if_ether compat headers
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
8a237420f2
commit
a8beadb5f6
@ -23,7 +23,6 @@
|
||||
#define _LINUX_IF_ETHER_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/libc-compat.h>
|
||||
|
||||
/*
|
||||
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
|
||||
@ -151,6 +150,11 @@
|
||||
* This is an Ethernet frame header.
|
||||
*/
|
||||
|
||||
/* allow libcs like musl to deactivate this, glibc does not implement this. */
|
||||
#ifndef __UAPI_DEF_ETHHDR
|
||||
#define __UAPI_DEF_ETHHDR 1
|
||||
#endif
|
||||
|
||||
#if __UAPI_DEF_ETHHDR
|
||||
struct ethhdr {
|
||||
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
|
||||
|
@ -264,10 +264,4 @@
|
||||
|
||||
#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 /* _LIBC_COMPAT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user