]> git.sur5r.net Git - u-boot/commitdiff
Fix compiler warning in imximage.c due to getline prototype
authorKumar Gala <galak@kernel.crashing.org>
Wed, 27 Jan 2010 16:16:56 +0000 (10:16 -0600)
committerWolfgang Denk <wd@denx.de>
Wed, 27 Jan 2010 19:10:01 +0000 (20:10 +0100)
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>
tools/imximage.c

index c1fdafbd7c8dcd2560f87acaad9385758536cf3d..59923ffefa5f6affc58644d18c0866df25a3cc9d 100644 (file)
@@ -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"