summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorMaciej ┼╗enczykowski <maze@google.com>2020-04-21 01:15:34 -0700
committerPablo Neira Ayuso <pablo@netfilter.org>2020-04-28 02:08:24 +0200
commit18304819573a53e05e2385e5462afbd9c50ee5f3 (patch)
tree4cd53f3d3201d133e3287b0858532d472425c910 /iptables
parent47b2095741fadaf21023695bbad4af39504bde57 (diff)
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 <maze@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/xshared.h1
1 files changed, 1 insertions, 0 deletions
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 <stdint.h>
#include <netinet/in.h>
#include <net/if.h>
+#include <sys/time.h>
#include <linux/netfilter_arp/arp_tables.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv6/ip6_tables.h>