* [PATCH] xshared.h - include sys/time.h to fix lack of struct timeval declaration
@ 2020-04-21 8:15 Maciej Żenczykowski
2020-04-28 0:04 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Maciej Żenczykowski @ 2020-04-21 8:15 UTC (permalink / raw)
To: Maciej Żenczykowski, Pablo Neira Ayuso, Florian Westphal
Cc: Linux Network Development Mailing List,
Netfilter Development Mailing List
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);
^
Test: builds with less warnings
Signed-off-by: Maciej Żenczykowski <maze@google.com>
---
iptables/xshared.h | 1 +
1 file changed, 1 insertion(+)
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>
--
2.26.1.301.g55bc3eb7cb9-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xshared.h - include sys/time.h to fix lack of struct timeval declaration
2020-04-21 8:15 [PATCH] xshared.h - include sys/time.h to fix lack of struct timeval declaration Maciej Żenczykowski
@ 2020-04-28 0:04 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2020-04-28 0:04 UTC (permalink / raw)
To: Maciej Żenczykowski
Cc: Maciej Żenczykowski, Florian Westphal,
Linux Network Development Mailing List,
Netfilter Development Mailing List
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-28 0:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 8:15 [PATCH] xshared.h - include sys/time.h to fix lack of struct timeval declaration Maciej Żenczykowski
2020-04-28 0:04 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).