diff options
Diffstat (limited to 'include/uapi/linux/if_ether.h')
| -rw-r--r-- | include/uapi/linux/if_ether.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index 3ee3bf7c8526..144de4d2f385 100644 --- a/include/uapi/linux/if_ether.h +++ b/include/uapi/linux/if_ether.h @@ -23,6 +23,7 @@  #define _UAPI_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 @@ -149,11 +150,13 @@   *	This is an Ethernet frame header.   */ +#if __UAPI_DEF_ETHHDR  struct ethhdr {  	unsigned char	h_dest[ETH_ALEN];	/* destination eth addr	*/  	unsigned char	h_source[ETH_ALEN];	/* source ether addr	*/  	__be16		h_proto;		/* packet type ID field	*/  } __attribute__((packed)); +#endif  #endif /* _UAPI_LINUX_IF_ETHER_H */ |