From bea5b7b5b611f456f18c77e5e6d56bb65f9b0ef7 Mon Sep 17 00:00:00 2001 From: Lyndon Nerenberg Date: Sun, 30 Jun 2013 12:39:46 -0700 Subject: [PATCH] Add compilation guard around lkopen_flock. Oracle Solaris 11 doesn't have flock(). --- sbr/lock_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.56.0