commit 52515bae377f221b5473d9040f5f43ab1c672672
Author: Florian Weimer <fweimer@redhat.com>
Date: Mon Dec 19 11:49:06 2022 +0100
Include <err.h> and "tcpkill.h" to avoid implicit function declarations
Implicit function declarations are a historic language feature that
were removed from C in 1999.
Submitted upstream: <https://github.com/jpr5/ngrep/pull/28>
diff --git a/ngrep.c b/ngrep.c
index 3df9389c010d084a..b2fccebd0f5d9a10 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 5388ec5fab5b467a..ac8fd2ed2293e861 100644
--- a/tcpkill.c
+++ b/tcpkill.c
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <err.h>
#include <libnet.h>
#include <pcap.h>