]> code.ossystems Code Review - openembedded-core.git/blob
2e04701699c8154153e9137b6dd9c0138d641864
[openembedded-core.git] /
1 From 897736166fd709906a5fdf16eb23f8fddff770b5 Mon Sep 17 00:00:00 2001
2 From: Bruce Ashfield <bruce.ashfield@windriver.com>
3 Date: Thu, 1 Mar 2018 18:31:01 -0500
4 Subject: [PATCH] if_ether: move muslc ethhdr protection to uapi file
5
6 Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7 ---
8  include/uapi/linux/if_ether.h | 6 ++++++
9  1 file changed, 6 insertions(+)
10
11 diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h
12 index 153c9c2..7b69b73 100644
13 --- a/include/uapi/linux/if_ether.h
14 +++ b/include/uapi/linux/if_ether.h
15 @@ -149,6 +149,12 @@
16   *     This is an Ethernet frame header.
17   */
18  
19 +#ifdef _NETINET_IF_ETHER_H /* musl */
20 +#define __UAPI_DEF_ETHHDR 0
21 +#else /* glibc uses __NETINET_IF_ETHER_H, and includes the kernel header. */
22 +#define __UAPI_DEF_ETHHDR 1
23 +#endif
24 +
25  /* allow libcs like musl to deactivate this, glibc does not implement this. */
26  #ifndef __UAPI_DEF_ETHHDR
27  #define __UAPI_DEF_ETHHDR              1
28 -- 
29 2.7.4
30