[OpenWrt-Devel] [PATCH 2/2] mdadm: Include sys/sysmacros.h under musl as well.

Rosen Penev rosenp at gmail.com
Fri Aug 2 20:11:06 EDT 2019


Needed with musl version 1.1.23 as it no longer includes this header
internally. From changelog:

- sys/types.h no longer pollutes namespace with sys/sysmacros.h in any profile

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 package/utils/mdadm/patches/102-sysmacros.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 package/utils/mdadm/patches/102-sysmacros.patch

diff --git a/package/utils/mdadm/patches/102-sysmacros.patch b/package/utils/mdadm/patches/102-sysmacros.patch
new file mode 100644
index 0000000000..68ec719f15
--- /dev/null
+++ b/package/utils/mdadm/patches/102-sysmacros.patch
@@ -0,0 +1,11 @@
+--- a/mdadm.h
++++ b/mdadm.h
+@@ -45,7 +45,7 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
+ #include	<errno.h>
+ #include	<string.h>
+ #include	<syslog.h>
+-#ifdef __GLIBC__
++#if 1
+ /* Newer glibc requires sys/sysmacros.h directly for makedev() */
+ #include	<sys/sysmacros.h>
+ #endif
-- 
2.17.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list