From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Date: Wed, 27 Jan 2010 10:16:56 -0600 Subject: [U-Boot] [PATCH v2] Fix compiler warning in imximage.c due to getline prototype Message-ID: <1264609016-21475-1-git-send-email-galak@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de imximage.c: In function 'imximage_parse_cfg_file': imximage.c:142: warning: implicit declaration of function 'getline' Signed-off-by: Kumar Gala --- * Moved _GNU_SOURCE define into imximage.c per Mike F. suggestion tools/imximage.c | 3 +++ 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 #include "imximage.h" -- 1.6.0.6