aboutsummaryrefslogtreecommitdiff
path: root/projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-01-22 05:04:49 +0100
committerGogs <gogitservice@gmail.com>2017-01-22 05:04:49 +0100
commit76b7edb769fb14c2fa74cef619c9b67850a6d0b8 (patch)
treeefb4742b2739682aa5cacf385d23111dd33187d4 /projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff
parentc365a3d9a7139b44415b9c7aa5487e6a84f29b1f (diff)
parent676dd2287a00314f466c6a401fe2310238de8f2b (diff)
downloadlibrebootfr-76b7edb769fb14c2fa74cef619c9b67850a6d0b8.tar.gz
librebootfr-76b7edb769fb14c2fa74cef619c9b67850a6d0b8.zip
Merge branch 'master' of seokj/libreboot into master
Diffstat (limited to 'projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff')
-rw-r--r--projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff34
1 files changed, 34 insertions, 0 deletions
diff --git a/projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff b/projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff
new file mode 100644
index 00000000..f5a771f8
--- /dev/null
+++ b/projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff
@@ -0,0 +1,34 @@
+diff --git a/fdtmap.h b/fdtmap.h
+index 68eeef9..fe75291 100644
+--- a/fdtmap.h
++++ b/fdtmap.h
+@@ -36,6 +36,12 @@
+ #ifndef FLASHMAP_LIB_FDTMAP_H__
+ #define FLASHMAP_LIB_FDTMAP_H__
+
++#ifndef _GNU_SOURCE
++#define _GNU_SOURCE
++#endif
++
++#include <fcntl.h>
++
+ #define FDTMAP_SIGNATURE "__FDTM__"
+
+ struct romlayout;
+diff --git a/fmap.h b/fmap.h
+index b3c0a34..8aa82f7 100644
+--- a/fmap.h
++++ b/fmap.h
+@@ -38,7 +38,12 @@
+ #ifndef FLASHMAP_LIB_FMAP_H__
+ #define FLASHMAP_LIB_FMAP_H__
+
++#ifndef _GNU_SOURCE
++#define _GNU_SOURCE
++#endif
++
+ #include <inttypes.h>
++#include <fcntl.h>
+
+ struct flashctx;
+