Patchwork [U-Boot,PATCHv4,3/8] mkenvimage: Correct an include and add a missing one

login
register
mail settings
Submitter David Wagner
Date Jan. 8, 2012, 1:08 p.m.
Message ID <1326028090-3407-1-git-send-email-david.wagner@free-electrons.com>
Download mbox | patch
Permalink /patch/134907/
State Accepted
Commit d1acdae98655af4a9ed1b138325ff172206d1c00
Headers show

Comments

David Wagner - Jan. 8, 2012, 1:08 p.m.
compiler.h needs to be included from U-Boot's headers.
Also, group U-Boot-specific includes together

stdlib.h was missing.

Signed-off-by: David Wagner <david.wagner@free-electrons.com>
---
 tools/mkenvimage.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Mike Frysinger - Jan. 8, 2012, 7:09 p.m.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike

Patch

diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c
index c95f7f5..810a89e 100644
--- a/tools/mkenvimage.c
+++ b/tools/mkenvimage.c
@@ -31,13 +31,14 @@ 
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
 #include <unistd.h>
-#include <compiler.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#include "compiler.h"
 #include <u-boot/crc.h>
 #include <version.h>