From f95fcd7dab7e34174082aa3336751efdbe9984c5 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 10 Jul 2011 09:21:08 +0000 Subject: remove compile warning, conditionally define LOCKFILE --- libebtc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libebtc.c') diff --git a/libebtc.c b/libebtc.c index f66ebef..17ba8f2 100644 --- a/libebtc.c +++ b/libebtc.c @@ -32,6 +32,8 @@ #include #include #include +#include +#include #include static void decrease_chain_jumps(struct ebt_u_replace *replace); @@ -131,8 +133,10 @@ void ebt_list_extensions() } } +#ifndef LOCKFILE #define LOCKDIR "/var/lib/ebtables" #define LOCKFILE LOCKDIR"/lock" +#endif static int lockfd = -1, locked; int use_lockfd; /* Returns 0 on success, -1 when the file is locked by another process -- cgit v1.2.3