Blame SOURCES/0031-mdadm.h-include-sysmacros.h-unconditionally.patch

5d5466
From 452dc4d13a012cdcb05088c0dbc699959c4d6c73 Mon Sep 17 00:00:00 2001
5d5466
From: Baruch Siach <baruch@tkos.co.il>
5d5466
Date: Tue, 6 Aug 2019 16:05:23 +0300
5d5466
Subject: [RHEL7.8 PATCH V2 31/47] mdadm.h: include sysmacros.h unconditionally
5d5466
5d5466
musl libc now also requires sys/sysmacros.h for the major/minor macros.
5d5466
All supported libc implementations carry sys/sysmacros.h, including
5d5466
diet-libc, klibc, and uclibc-ng.
5d5466
5d5466
Cc: Hauke Mehrtens <hauke@hauke-m.de>
5d5466
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
5d5466
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
5d5466
---
5d5466
 mdadm.h | 2 --
5d5466
 1 file changed, 2 deletions(-)
5d5466
5d5466
diff --git a/mdadm.h b/mdadm.h
5d5466
index c36d7fd..d61a9ca 100644
5d5466
--- a/mdadm.h
5d5466
+++ b/mdadm.h
5d5466
@@ -45,10 +45,8 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
5d5466
 #include	<errno.h>
5d5466
 #include	<string.h>
5d5466
 #include	<syslog.h>
5d5466
-#ifdef __GLIBC__
5d5466
 /* Newer glibc requires sys/sysmacros.h directly for makedev() */
5d5466
 #include	<sys/sysmacros.h>
5d5466
-#endif
5d5466
 #ifdef __dietlibc__
5d5466
 #include	<strings.h>
5d5466
 /* dietlibc has deprecated random and srandom!! */
5d5466
-- 
5d5466
2.7.5
5d5466