<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- a/src/mtd.c
+++ b/src/mtd.c
@@ -28,6 +28,7 @@
 #include &lt;unistd.h&gt;
 #include &lt;stdlib.h&gt;
 #include &lt;string.h&gt;
+#include &lt;stddef.h&gt;
 #include &lt;fcntl.h&gt;
 #include &lt;ctype.h&gt;
 #include &lt;errno.h&gt;
--- a/src/mtd.h
+++ b/src/mtd.h
@@ -25,8 +25,11 @@
 #ifndef MTD_H
 #define MTD_H
 
+#define _GNU_SOURCE
 #include &lt;mtd/mtd-user.h&gt;
 #include &lt;endian.h&gt;
+#include &lt;stdint.h&gt;
+#include &lt;fcntl.h&gt;
 
 #include "BootControlBlocks.h"
 #include "rom_nand_hamming_code_ecc.h"
</pre></body></html>