dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

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

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