X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f1c5e5fde4f706bb40af755572c0cad49ca81729..316717fa2a6a3b9cb544c4b2a3bae8e1301fbf30:/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