summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2010-01-27 10:16:56 -0600
committerWolfgang Denk <wd@denx.de>2010-01-27 20:10:01 +0100
commit249d4dec69e8d41ca58fe6cb3c56ea6f0480ef16 (patch)
tree436a6aa4d693fc2b7399b195ea67e8d3dc4f9e73 /tools
parent797312a15edc9dfb433e6903a75189030e7aaaaa (diff)
downloadu-boot-imx-249d4dec69e8d41ca58fe6cb3c56ea6f0480ef16.zip
u-boot-imx-249d4dec69e8d41ca58fe6cb3c56ea6f0480ef16.tar.gz
u-boot-imx-249d4dec69e8d41ca58fe6cb3c56ea6f0480ef16.tar.bz2
Fix compiler warning in imximage.c due to getline prototype
imximage.c: In function 'imximage_parse_cfg_file': imximage.c:142: warning: implicit declaration of function 'getline' Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/imximage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/imximage.c b/tools/imximage.c
index c1fdafb..59923ff 100644
--- a/tools/imximage.c
+++ b/tools/imximage.c
@@ -25,6 +25,9 @@
* MA 02111-1307 USA
*/
+/* Required to obtain the getline prototype from stdio.h */
+#define _GNU_SOURCE
+
#include "mkimage.h"
#include <image.h>
#include "imximage.h"