X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f1c5e5fde4f706bb40af755572c0cad49ca81729..70a3fbf967717678e2edd0fb2c992e5a2c59a2b0:/sbr/lock_file.c diff --git a/sbr/lock_file.c b/sbr/lock_file.c index 0e83ac82..01d7ae49 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -380,6 +380,7 @@ lkopen_fcntl(const char *file, int access, mode_t mode) } +#ifdef HAVE_FLOCK /* * Open and lock a file, using flock locking */ @@ -412,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