2015-11-01 12:38:38 +00:00
|
|
|
--- a/src/mtd.c
|
|
|
|
+++ b/src/mtd.c
|
|
|
|
@@ -28,6 +28,7 @@
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
+#include <stddef.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
|
|
|
--- a/src/mtd.h
|
|
|
|
+++ b/src/mtd.h
|
2017-11-09 17:06:49 +00:00
|
|
|
@@ -25,8 +25,11 @@
|
2016-09-01 14:45:37 +00:00
|
|
|
#ifndef MTD_H
|
|
|
|
#define MTD_H
|
2015-11-01 12:38:38 +00:00
|
|
|
|
2016-09-01 14:45:37 +00:00
|
|
|
+#define _GNU_SOURCE
|
2015-11-01 12:38:38 +00:00
|
|
|
#include <mtd/mtd-user.h>
|
|
|
|
#include <endian.h>
|
2017-11-09 17:06:49 +00:00
|
|
|
+#include <stdint.h>
|
2015-11-01 12:38:38 +00:00
|
|
|
+#include <fcntl.h>
|
|
|
|
|
|
|
|
#include "BootControlBlocks.h"
|
|
|
|
#include "rom_nand_hamming_code_ecc.h"
|