mailing list of musl libc
 help / color / mirror / code / Atom feed
* kernel: suppress some more Linux uapi definitions
@ 2017-08-04 15:09 Hauke Mehrtens
  2018-01-01 18:50 ` Hauke Mehrtens
  0 siblings, 1 reply; 2+ messages in thread
From: Hauke Mehrtens @ 2017-08-04 15:09 UTC (permalink / raw)
  To: musl; +Cc: felix.janda, dalias, Hauke Mehrtens

The following commit activated the suppression of some uapi definitions
in musl 04983f227238 ("make netinet/in.h suppress clashing definitions
from kernel headers"), but it still misses some of the definitions for
other files.

This will deactivate the definitions in the user space header files
exported by the Linux kernel.

This fully works when Felix's patch posted here is applied to the Linux
kernel:
https://patchwork.kernel.org/patch/9869953/

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 include/net/if.h    | 7 +++++++
 include/sys/xattr.h | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/include/net/if.h b/include/net/if.h
index 2f2fcc10..21f10801 100644
--- a/include/net/if.h
+++ b/include/net/if.h
@@ -125,6 +125,13 @@ struct ifconf {
 #define ifc_req		ifc_ifcu.ifcu_req
 #define _IOT_ifconf _IOT(_IOTS(struct ifconf),1,0,0,0,0)
 
+#define __UAPI_DEF_IF_IFCONF 0
+#define __UAPI_DEF_IF_IFMAP 0
+#define __UAPI_DEF_IF_IFNAMSIZ 0
+#define __UAPI_DEF_IF_IFREQ 0
+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
+
 #endif
 
 #ifdef __cplusplus
diff --git a/include/sys/xattr.h b/include/sys/xattr.h
index 6479fcc6..7a0197ba 100644
--- a/include/sys/xattr.h
+++ b/include/sys/xattr.h
@@ -24,6 +24,8 @@ int removexattr(const char *, const char *);
 int lremovexattr(const char *, const char *);
 int fremovexattr(int, const char *);
 
+#define __UAPI_DEF_XATTR 0
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.11.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-01 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-04 15:09 kernel: suppress some more Linux uapi definitions Hauke Mehrtens
2018-01-01 18:50 ` Hauke Mehrtens

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).