diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2011-07-10 09:21:08 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2011-07-10 09:21:08 +0000 |
commit | f95fcd7dab7e34174082aa3336751efdbe9984c5 (patch) | |
tree | 4e4962c7d38cb0c582c131fc665e0dd6ed634eac | |
parent | dcae1bfa7d9f54f4fe1148c03180dbe311bbc27c (diff) | |
download | ebtables-f95fcd7dab7e34174082aa3336751efdbe9984c5.tar.gz ebtables-f95fcd7dab7e34174082aa3336751efdbe9984c5.tar.bz2 ebtables-f95fcd7dab7e34174082aa3336751efdbe9984c5.zip |
remove compile warning, conditionally define LOCKFILE
-rw-r--r-- | libebtc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -32,6 +32,8 @@ #include <unistd.h> #include <fcntl.h> #include <sys/wait.h> +#include <sys/stat.h> +#include <sys/types.h> #include <errno.h> 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 |