uboot-lantiq: fix compile with modern host dtc
[openwrt/openwrt.git] / package / boot / uboot-lantiq / patches / 200-fix-dtc-header-guard.patch
1 --- a/include/libfdt_env.h
2 +++ b/include/libfdt_env.h
3 @@ -8,6 +8,7 @@
4
5 #ifndef _LIBFDT_ENV_H
6 #define _LIBFDT_ENV_H
7 +#define LIBFDT_ENV_H
8
9 #include "compiler.h"
10 #include "linux/types.h"
11 --- a/include/libfdt.h
12 +++ b/include/libfdt.h
13 @@ -1,5 +1,6 @@
14 #ifndef _LIBFDT_H
15 #define _LIBFDT_H
16 +#define LIBFDT_H
17 /*
18 * libfdt - Flat Device Tree manipulation
19 * Copyright (C) 2006 David Gibson, IBM Corporation.