X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d66378909931a74ed83e29d592982eaa3e7e0107..a40781a8549f7f16a36b382bafa0c19333da13e9:/sbr/lock_file.c diff --git a/sbr/lock_file.c b/sbr/lock_file.c index 13a16029..01d7ae49 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -24,19 +24,13 @@ # include #endif #include -#include #include #ifdef HAVE_FLOCK # include #endif -#ifdef HAVE_LOCKF -# include -#endif - -#include #if defined(HAVE_LIBLOCKFILE) -#include +# include #endif #ifdef LOCKDIR @@ -386,6 +380,7 @@ lkopen_fcntl(const char *file, int access, mode_t mode) } +#ifdef HAVE_FLOCK /* * Open and lock a file, using flock locking */ @@ -418,7 +413,7 @@ lkopen_flock(const char *file, int access, mode_t mode) errno = saved_errno; return -1; } - +#endif /* HAVE_FLOCK */ /* * Open and lock a file, using lockf locking