kona: -Werror=implicit-function-declaration

This commit is contained in:
Fredrik Fornwall 2017-07-07 00:57:20 +02:00
parent 49f69cc34e
commit 586031d997
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -u -r ../kona-Win.3.39-69/src/0.c ./src/0.c
--- ../kona-Win.3.39-69/src/0.c 2016-04-17 18:10:22.000000000 +0000
+++ ./src/0.c 2017-07-06 22:48:04.933685208 +0000
@@ -13,6 +13,7 @@
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__ANDROID__)
#include <sys/socket.h>
#include <netinet/in.h>
+#include <sys/wait.h> /* For wait(2). */
#endif
#include "0.h"

View File

@ -0,0 +1,11 @@
diff -u -r ../kona-Win.3.39-69/src/kn.c ./src/kn.c
--- ../kona-Win.3.39-69/src/kn.c 2016-04-17 18:10:22.000000000 +0000
+++ ./src/kn.c 2017-07-06 22:56:28.547903872 +0000
@@ -4,6 +4,7 @@
#include "k.h"
#include "km.h"
#include "kn.h"
+#include "c.h"
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__ANDROID__)
#include <sys/socket.h>

View File

@ -0,0 +1,9 @@
diff -u -r ../kona-Win.3.39-69/src/p.c ./src/p.c
--- ../kona-Win.3.39-69/src/p.c 2016-04-17 18:10:22.000000000 +0000
+++ ./src/p.c 2017-07-06 22:52:49.750416845 +0000
@@ -1,4 +1,5 @@
#include "incs.h"
+#include "c.h"
#include "k.h"
#include "km.h"
#include "p.h"

View File

@ -0,0 +1,10 @@
diff -u -r ../kona-Win.3.39-69/src/v.h ./src/v.h
--- ../kona-Win.3.39-69/src/v.h 2016-04-17 18:10:22.000000000 +0000
+++ ./src/v.h 2017-07-06 22:54:46.265079031 +0000
@@ -6,3 +6,6 @@
extern V offsetSSR,offsetWhat,offsetAt,offsetDot,offsetColon; //k.c
extern K KTREE; //k.c
K wd_(S s,I n,K*dict,K func); //p.c
+
+K lookupEntryOrCreate(K *p, S k);
+K* EAP(K e);