Message ID | 20200421081534.108211-1-zenczykowski@gmail.com |
---|---|
State | Not Applicable |
Headers | show |
Series | xshared.h - include sys/time.h to fix lack of struct timeval declaration | expand |
On Tue, Apr 21, 2020 at 01:15:34AM -0700, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski <maze@google.com> > > This fixes 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); > ^ Applied.
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>