From 0c5310075b5e1995bba0ddeed5a674a075fdb8b0 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sun, 25 Dec 2011 09:57:26 +0400 Subject: [PATCH] decompress_inflate.c: fix "no previous prototype for 'gunzip'" warning Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- include/gunzip.h | 4 ++-- lib/decompress_inflate.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/gunzip.h b/include/gunzip.h index 8c0aef1ba..b9018941d 100644 --- a/include/gunzip.h +++ b/include/gunzip.h @@ -1,5 +1,5 @@ -#ifndef INFLATE_H -#define INFLATE_H +#ifndef GUNZIP_H +#define GUNZIP_H int gunzip(unsigned char *inbuf, int len, int(*fill)(void*, unsigned int), diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c index d246d4dc7..526d6a173 100644 --- a/lib/decompress_inflate.c +++ b/lib/decompress_inflate.c @@ -24,6 +24,8 @@ #endif /* STATIC */ +#include + #define GZIP_IOBUF_SIZE (16*1024) static int nofill(void *buffer, unsigned int len)