From f33345f2f2bea55935d986bcc1d4991ba898a8ae Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 6 Jul 2019 15:36:44 -0700 Subject: gkermit: Fix compilation with -Wimplicit-function-declaration Cleaned up Makefile for consistency between packages. Signed-off-by: Rosen Penev --- utils/gkermit/patches/010-musl.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 utils/gkermit/patches/010-musl.patch (limited to 'utils/gkermit/patches') diff --git a/utils/gkermit/patches/010-musl.patch b/utils/gkermit/patches/010-musl.patch new file mode 100644 index 000000000..e8458a534 --- /dev/null +++ b/utils/gkermit/patches/010-musl.patch @@ -0,0 +1,29 @@ +--- a/gcmdline.c ++++ b/gcmdline.c +@@ -29,6 +29,7 @@ + */ + + #include ++#include + #include "gkermit.h" + + /* Externals */ +@@ -53,7 +54,7 @@ _MYPROTOTYPE( VOID fatal, (char *) ); + _MYPROTOTYPE( VOID usage, (void) ); + + #ifndef NOGETENV +-_MYPROTOTYPE( char * getenv, (char *) ); ++_MYPROTOTYPE( char * getenv, (const char *) ); + #define GARGC 32 + #define GBUFSIZ 256 + static char gbuf[GBUFSIZ], *gargs[GARGC], *gptr = NULL; +--- a/gunixio.c ++++ b/gunixio.c +@@ -58,6 +58,7 @@ + */ + + #include /* Standard input/output */ ++#include + + #ifdef POSIX + #include /* Terminal modes */ -- cgit v1.2.3