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

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