dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

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

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