From: Lyndon Nerenberg Date: Sun, 30 Jun 2013 19:39:46 +0000 (-0700) Subject: Add compilation guard around lkopen_flock. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/bea5b7b5b611f456f18c77e5e6d56bb65f9b0ef7?ds=inline;hp=-c Add compilation guard around lkopen_flock. Oracle Solaris 11 doesn't have flock(). --- bea5b7b5b611f456f18c77e5e6d56bb65f9b0ef7 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