flashrom-loff_t-20170120-3470be9.diff 597 B

1234567891011121314151617181920212223242526272829303132333435
  1. diff --git a/fdtmap.h b/fdtmap.h
  2. index 68eeef9..fe75291 100644
  3. --- a/fdtmap.h
  4. +++ b/fdtmap.h
  5. @@ -36,6 +36,12 @@
  6. #ifndef FLASHMAP_LIB_FDTMAP_H__
  7. #define FLASHMAP_LIB_FDTMAP_H__
  8. +#ifndef _GNU_SOURCE
  9. +#define _GNU_SOURCE
  10. +#endif
  11. +
  12. +#include <fcntl.h>
  13. +
  14. #define FDTMAP_SIGNATURE "__FDTM__"
  15. struct romlayout;
  16. diff --git a/fmap.h b/fmap.h
  17. index b3c0a34..8aa82f7 100644
  18. --- a/fmap.h
  19. +++ b/fmap.h
  20. @@ -38,7 +38,12 @@
  21. #ifndef FLASHMAP_LIB_FMAP_H__
  22. #define FLASHMAP_LIB_FMAP_H__
  23. +#ifndef _GNU_SOURCE
  24. +#define _GNU_SOURCE
  25. +#endif
  26. +
  27. #include <inttypes.h>
  28. +#include <fcntl.h>
  29. struct flashctx;