summaryrefslogtreecommitdiff
path: root/include/uapi/linux/if_ether.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2018-03-20 10:01:37 +0100
committerIngo Molnar <mingo@kernel.org>2018-03-20 10:01:37 +0100
commit3eb93ea3272d428aab3c03e2dd272a78a7729ba8 (patch)
tree63ca8b7e7feccb109f4b5cb868939da395c7632f /include/uapi/linux/if_ether.h
parent5927145efd5de71976e62e2822511b13014d7e56 (diff)
parent565977a3d929fc4427769117a8ac976ec16776d5 (diff)
Merge branch 'x86/mm' into x86/dma, to pick up dependencies
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/uapi/linux/if_ether.h')
-rw-r--r--include/uapi/linux/if_ether.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h
index f8cb5760ea4f..8bbbcb5cd94b 100644
--- a/include/uapi/linux/if_ether.h
+++ b/include/uapi/linux/if_ether.h
@@ -23,7 +23,6 @@
#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
@@ -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 */