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
|
#define _LINUX_IF_ETHER_H
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/libc-compat.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
|
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
|
||||||
|
|
@ -151,6 +150,11 @@
|
||||||
* This is an Ethernet frame header.
|
* 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
|
#if __UAPI_DEF_ETHHDR
|
||||||
struct ethhdr {
|
struct ethhdr {
|
||||||
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
|
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
|
||||||
|
|
|
||||||
|
|
@ -264,10 +264,4 @@
|
||||||
|
|
||||||
#endif /* __GLIBC__ */
|
#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 */
|
#endif /* _LIBC_COMPAT_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue