2
0

102-Add-missing-include-file-sys-sysmacros.h.patch 928 B

1234567891011121314151617181920212223242526272829
  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. musl libc now also requires sys/sysmacros.h for the major/minor macros.
  6. All supported libc implementations carry sys/sysmacros.h, including
  7. diet-libc, klibc, and uclibc-ng.
  8. Cc: Hauke Mehrtens <hauke@hauke-m.de>
  9. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  10. Signed-off-by: Jes Sorensen <jsorensen@fb.com>
  11. ---
  12. mdadm.h | 2 --
  13. 1 file changed, 2 deletions(-)
  14. --- a/mdadm.h
  15. +++ b/mdadm.h
  16. @@ -45,10 +45,8 @@ extern __off64_t lseek64 __P ((int __fd,
  17. #include <errno.h>
  18. #include <string.h>
  19. #include <syslog.h>
  20. -#ifdef __GLIBC__
  21. /* Newer glibc requires sys/sysmacros.h directly for makedev() */
  22. #include <sys/sysmacros.h>
  23. -#endif
  24. #ifdef __dietlibc__
  25. #include <strings.h>
  26. /* dietlibc has deprecated random and srandom!! */