0001-compile-fix-for-linux-header-changes.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From d7bb6180f831091c468e5aa749b142efd5eddda4 Mon Sep 17 00:00:00 2001
  2. From: "Robin H. Johnson" <robbat2@gentoo.org>
  3. Date: Wed, 3 Feb 2016 08:32:19 -0800
  4. Subject: [PATCH] libmtd: compile fix for linux header changes.
  5. In the Linux kernel source, mtd/mtd-user.h had a change
  6. 'mtd: mtd-user: remove stdint.h include'
  7. (137d36af4a53858b8db7ca83c8480247118b8bdf)
  8. This causes the uint8_t/uint64_t types to be undefined in libmtd.h
  9. now, as they were implicitly coming from it before.
  10. Import stdint.h explicitly into libmtd.h to resolve this.
  11. X-URL: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=137d36af4a53858b8db7ca83c8480247118b8bdf
  12. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
  13. ---
  14. Patch downloaded from upstream repo:
  15. http://git.kernel.dk/?p=fio.git;a=patch;h=d7bb6180f831091c468e5aa749b142efd5eddda4
  16. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
  17. ---
  18. oslib/libmtd.h | 3 +++
  19. 1 file changed, 3 insertions(+)
  20. diff --git a/oslib/libmtd.h b/oslib/libmtd.h
  21. index 3625de5..b5fd3f3 100644
  22. --- a/oslib/libmtd.h
  23. +++ b/oslib/libmtd.h
  24. @@ -29,6 +29,9 @@
  25. extern "C" {
  26. #endif
  27. +// Needed for uint8_t, uint64_t
  28. +#include <stdint.h>
  29. +
  30. /* Maximum MTD device name length */
  31. #define MTD_NAME_MAX 127
  32. /* Maximum MTD device type string length */
  33. --
  34. 2.5.0