From: Kumar Gala <galak@kernel.crashing.org>
Date: Wed, 27 Jan 2010 16:16:56 +0000 (-0600)
Subject: Fix compiler warning in imximage.c due to getline prototype
X-Git-Tag: v2025.01-rc5-pxa1908~20502
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/gitweb.css?a=commitdiff_plain;h=249d4dec69e8d41ca58fe6cb3c56ea6f0480ef16;p=u-boot.git

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>
---

diff --git a/tools/imximage.c b/tools/imximage.c
index c1fdafbd7c..59923ffefa 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"