1From 6c781ad75d92c6f65832810c44afcba1b2dffc41 Mon Sep 17 00:00:00 2001
2From: Baruch Siach <baruch@tkos.co.il>
3Date: Tue, 6 Aug 2019 16:01:15 +0300
4Subject: [PATCH] mdadm.h: include sysmacros.h unconditionally
5
6musl libc now also requires sys/sysmacros.h for the major/minor macros.
7All supported libc implementations carry sys/sysmacros.h, including
8diet-libc, klibc, and uclibc-ng.
9
10Cc: Hauke Mehrtens <hauke@hauke-m.de>
11Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12---
13Upstream status: https://marc.info/?l=linux-raid&m=156509677018508
14
15 mdadm.h | 2 --
16 1 file changed, 2 deletions(-)
17
18diff --git a/mdadm.h b/mdadm.h
19index c36d7fdb10f6..d61a9ca82dc1 100644
20--- a/mdadm.h
21+++ b/mdadm.h
22@@ -45,10 +45,8 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
23 #include	<errno.h>
24 #include	<string.h>
25 #include	<syslog.h>
26-#ifdef __GLIBC__
27 /* Newer glibc requires sys/sysmacros.h directly for makedev() */
28 #include	<sys/sysmacros.h>
29-#endif
30 #ifdef __dietlibc__
31 #include	<strings.h>
32 /* dietlibc has deprecated random and srandom!! */
33--
342.20.1
35
36