]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
uapi: update if_ether compat headers
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 20 Feb 2018 18:48:32 +0000 (10:48 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 20 Feb 2018 18:48:32 +0000 (10:48 -0800)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/if_ether.h
include/uapi/linux/libc-compat.h

index 5f1d4af33a111423b61b712a8969da67d86a298f..a34b152e3c19683f2acd70a9e3d750897382eb70 100644 (file)
@@ -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
  *     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 */
index 5668ec3dc61af22a1e76e6226aa5969a6ff542a6..a1599911e7a942322aed41c6aa730caaa66075e9 100644 (file)
 
 #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 */