0002-Fix-build-for-recent-toolchains.patch 742 B

1234567891011121314151617181920212223242526
  1. [PATCH] Fix build for recent toolchains
  2. Starting with Linux 4.4 headers, mtd-user.h isn't including stdint.h
  3. anymore which breaks the build.
  4. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
  5. ---
  6. src/BootControlBlocks.h | 2 ++
  7. 1 file changed, 2 insertions(+)
  8. diff --git a/src/BootControlBlocks.h b/src/BootControlBlocks.h
  9. index 192eb61..aacdb64 100644
  10. --- a/src/BootControlBlocks.h
  11. +++ b/src/BootControlBlocks.h
  12. @@ -20,6 +20,8 @@
  13. #ifndef BOOTCONTROLBLOCKS_H_
  14. #define BOOTCONTROLBLOCKS_H_
  15. +#include <stdint.h>
  16. +
  17. #define NCB_FINGERPRINT1 0x504d5453 //!< 'STMP'
  18. #define NCB_FINGERPRINT2 0x2042434e //!< 'NCB<space>' - NAND Control Block
  19. #define NCB_FINGERPRINT3 0x4e494252 //!< 'RBIN' - ROM Boot Image Block - N
  20. --
  21. 2.6.4