From: Maciej Żenczykowski Date: Tue, 21 Apr 2020 08:15:34 +0000 (-0700) Subject: iptables: include sys/time.h to fix lack of struct timeval declaration X-Git-Tag: v1.8.5~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18304819573a53e05e2385e5462afbd9c50ee5f3;p=thirdparty%2Fiptables.git iptables: include sys/time.h to fix lack of struct timeval declaration 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 --- 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