From 18304819573a53e05e2385e5462afbd9c50ee5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Tue, 21 Apr 2020 01:15:34 -0700 Subject: iptables: include sys/time.h to fix lack of struct timeval declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes clang compiler warnings: iptables/xshared.h:176:50: error: declaration of 'struct timeval' will not be visible outside of this function [-Werror,-Wvisibility] extern int xtables_lock_or_exit(int wait, struct timeval *tv); ^ iptables/xshared.h:179:57: error: declaration of 'struct timeval' will not be visible outside of this function [-Werror,-Wvisibility] void parse_wait_interval(int argc, char *argv[], struct timeval *wait_interval); ^ Test: builds with less warnings Signed-off-by: Maciej Żenczykowski Signed-off-by: Pablo Neira Ayuso --- iptables/xshared.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables') diff --git a/iptables/xshared.h b/iptables/xshared.h index 490b19ad..c41bd054 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3