mac80211 ozonet updates
[openwrt/.git] / package / utils / mdadm / patches / 102-Add-missing-include-file-sys-sysmacros.h.patch
1 From 452dc4d13a012cdcb05088c0dbc699959c4d6c73 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Tue, 6 Aug 2019 16:05:23 +0300
4 Subject: mdadm.h: include sysmacros.h unconditionally
5
6 musl libc now also requires sys/sysmacros.h for the major/minor macros.
7 All supported libc implementations carry sys/sysmacros.h, including
8 diet-libc, klibc, and uclibc-ng.
9
10 Cc: Hauke Mehrtens <hauke@hauke-m.de>
11 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12 Signed-off-by: Jes Sorensen <jsorensen@fb.com>
13 ---
14  mdadm.h | 2 --
15  1 file changed, 2 deletions(-)
16
17 --- a/mdadm.h
18 +++ b/mdadm.h
19 @@ -45,10 +45,8 @@ extern __off64_t lseek64 __P ((int __fd,
20  #include       <errno.h>
21  #include       <string.h>
22  #include       <syslog.h>
23 -#ifdef __GLIBC__
24  /* Newer glibc requires sys/sysmacros.h directly for makedev() */
25  #include       <sys/sysmacros.h>
26 -#endif
27  #ifdef __dietlibc__
28  #include       <strings.h>
29  /* dietlibc has deprecated random and srandom!! */