diff options
author | seokj <manettus@icloud.com> | 2017-01-20 16:43:13 +0000 |
---|---|---|
committer | seokj <manettus@icloud.com> | 2017-01-20 16:43:13 +0000 |
commit | 21d33559d4cdfa7edb542a461bb63c11adb0bff2 (patch) | |
tree | 9bbbac04f9816211bc43472abffd242b48f829a5 | |
parent | d5ffbf520e11ddd510ba5121493e80579543a37a (diff) | |
download | librebootfr-21d33559d4cdfa7edb542a461bb63c11adb0bff2.tar.gz librebootfr-21d33559d4cdfa7edb542a461bb63c11adb0bff2.zip |
define loff_t by specifying _GNU_SOURCE
-rw-r--r-- | projects/flashrom-cros/patches/flashrom-loff_t-20170120-3470be9.diff | 34 |
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; + |