[OpenWrt-Devel,2/2] mdadm: Include sys/sysmacros.h under musl as well.
diff mbox series

Message ID 20190803001106.25037-2-rosenp@gmail.com
State Superseded
Headers show
Series
  • [OpenWrt-Devel,1/2] mdadm: revised mdadm config & init logic
Related show

Commit Message

Rosen Penev Aug. 3, 2019, 12:11 a.m. UTC
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@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

Patch
diff mbox series

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