ports/net-mgmt/rate/files/patch-rate__sta.c
Alexey Dokuchaev 5841776f6c Include missing "dns.h" header to get the prototype for dns_lookup() which
returns char *.  Without it, compiler has to assume that it returns an int,
which results in segmentation fault e.g. in -A (bandwidth abusers) mode.
2020-09-04 17:23:12 +00:00

10 lines
198 B
C

--- rate_sta.c.orig 2003-08-20 14:31:53 UTC
+++ rate_sta.c
@@ -34,6 +34,7 @@
#include <time.h>
#include <pcap.h>
#include "lib.h"
+#include "dns.h"
#ifdef HAVE_REGEX
#include <regex.h>
#endif