From: Marek Vasut Date: Sat, 1 Jul 2017 16:02:00 +0200 Subject: [U-Boot] [PATCH 2/5] libfdt_env.h: Add in libfdt environment In-Reply-To: <1498839782-4702-3-git-send-email-pantelis.antoniou@konsulko.com> References: <1498839782-4702-1-git-send-email-pantelis.antoniou@konsulko.com> <1498839782-4702-3-git-send-email-pantelis.antoniou@konsulko.com> Message-ID: <3f52e576-9346-daec-88a2-5eee627dd980@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/30/2017 06:22 PM, Pantelis Antoniou wrote: > Overlays require malloc so add it in the libfdt environment. Include this where it's actually used, not in some header. > Signed-off-by: Pantelis Antoniou > --- > include/libfdt_env.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/libfdt_env.h b/include/libfdt_env.h > index 6c6845f..59463c0 100644 > --- a/include/libfdt_env.h > +++ b/include/libfdt_env.h > @@ -27,6 +27,7 @@ typedef __be64 fdt64_t; > #include > > #define strtoul(cp, endp, base) simple_strtoul(cp, endp, base) > +#include > #endif > > /* adding a ramdisk needs 0x44 bytes in version 2008.10 */ > -- Best regards, Marek Vasut