mdadm-3.4-sysmacros.patch 859 B

1234567891011121314151617181920212223242526272829303132
  1. https://bugs.gentoo.org/580188
  2. From 5c97e465b33bf8fefb17da7f553a1c3812e508d5 Mon Sep 17 00:00:00 2001
  3. From: Mike Frysinger <vapier@gentoo.org>
  4. Date: Tue, 19 Apr 2016 18:10:54 -0400
  5. Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev prototypes
  6. These funcs are defined in sys/sysmacros.h, so include it for them.
  7. It works today due to an implicit include by sys/types.h, but the
  8. various Linux C libraries are moving away from that.
  9. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  10. ---
  11. mdadm.h | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/mdadm.h b/mdadm.h
  14. index d209488..b8767a7 100755
  15. --- a/mdadm.h
  16. +++ b/mdadm.h
  17. @@ -33,6 +33,7 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
  18. # endif
  19. #endif
  20. +#include <sys/sysmacros.h>
  21. #include <sys/types.h>
  22. #include <sys/stat.h>
  23. #include <stdint.h>
  24. --
  25. 2.7.4