blob: f5a771f8da25fcc8ff40dd512e1edd0627b65553 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
|