|
@@ -23,7 +23,6 @@
|
|
#define _UAPI_LINUX_IF_ETHER_H
|
|
#define _UAPI_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 */
|