summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-02-16 16:57:39 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-02-18 23:36:56 +0100
commit6dc53c514f1e4683e51a877b3a2f3128cfccef28 (patch)
tree7e47b4bc2c1a503cd53480b54054eb74ec33380f
parentfe319c37c98248c7040bf5d6799033c8c332c7b4 (diff)
xshared: calm down compilation warning
xshared.c: In function ‘xtables_lock’: xshared.c:255:3: warning: implicit declaration of function ‘flock’ [-Wimplicit-function-declaration] Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--iptables/xshared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xshared.c b/iptables/xshared.c
index 7beb86b4..81c2581f 100644
--- a/iptables/xshared.c
+++ b/iptables/xshared.c
@@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/file.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>