浏览代码

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>
Kumar Gala 15 年之前
父节点
当前提交
249d4dec69
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tools/imximage.c

+ 3 - 0
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"