diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-07-06 15:36:44 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2019-07-06 16:45:53 -0700 |
commit | f33345f2f2bea55935d986bcc1d4991ba898a8ae (patch) | |
tree | b4dffc9af7b67fd27291c74348f43c5a52387b43 /utils/gkermit/patches | |
parent | 48ada8aaf31b72689d7642c5dba75d782c0899f6 (diff) |
gkermit: Fix compilation with -Wimplicit-function-declaration
Cleaned up Makefile for consistency between packages.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/gkermit/patches')
-rw-r--r-- | utils/gkermit/patches/010-musl.patch | 29 |
1 files changed, 29 insertions, 0 deletions
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 <stdio.h> ++#include <stdlib.h> + #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 <stdio.h> /* Standard input/output */ ++#include <stdlib.h> + + #ifdef POSIX + #include <termios.h> /* Terminal modes */ |