From 6d00dacec94efdf17f8d188b1901542e0b12f3da Mon Sep 17 00:00:00 2001 From: OpenKylin Developers Date: Mon, 16 Jan 2023 15:55:44 +0800 Subject: [PATCH] use_fcntl_locking # use flock for apr_file_lock/_unlock() # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752872 Gbp-Pq: Name use_fcntl_locking.patch --- file_io/unix/flock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file_io/unix/flock.c b/file_io/unix/flock.c index 01e8a63..a41e440 100644 --- a/file_io/unix/flock.c +++ b/file_io/unix/flock.c @@ -27,7 +27,7 @@ APR_DECLARE(apr_status_t) apr_file_lock(apr_file_t *thefile, int type) { int rc; -#if defined(HAVE_FCNTL_H) +#if 0 && defined(HAVE_FCNTL_H) { struct flock l = { 0 }; int fc; @@ -86,7 +86,7 @@ APR_DECLARE(apr_status_t) apr_file_unlock(apr_file_t *thefile) { int rc; -#if defined(HAVE_FCNTL_H) +#if 0 && defined(HAVE_FCNTL_H) { struct flock l = { 0 };