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 <[email protected]>
---
 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
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to