diff --git a/package/ngrep/0006-Include-err.h-and-tcpkill.h-to-avoid-implicit-functi.patch b/package/ngrep/0006-Include-err.h-and-tcpkill.h-to-avoid-implicit-functi.patch new file mode 100644 index 0000000000..6d596bfe37 --- /dev/null +++ b/package/ngrep/0006-Include-err.h-and-tcpkill.h-to-avoid-implicit-functi.patch @@ -0,0 +1,44 @@ +From 52515bae377f221b5473d9040f5f43ab1c672672 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Mon, 19 Dec 2022 11:49:06 +0100 +Subject: [PATCH] Include and "tcpkill.h" to avoid implicit function + declarations + +Implicit function declarations are a historic language feature that +were removed from C in 1999. + +Upstream: https://github.com/jpr5/ngrep/pull/28 + +Signed-off-by: Thomas Bonnefille +--- + ngrep.c | 1 + + tcpkill.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/ngrep.c b/ngrep.c +index 3df9389..b2fcceb 100644 +--- a/ngrep.c ++++ b/ngrep.c +@@ -98,6 +98,7 @@ + #endif + + #include "ngrep.h" ++#include "tcpkill.h" + + + /* +diff --git a/tcpkill.c b/tcpkill.c +index 5388ec5..ac8fd2e 100644 +--- a/tcpkill.c ++++ b/tcpkill.c +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + #include + #include + +-- +2.50.1 +