File: use_fcntl_locking.patch

package info (click to toggle)
apr 1.7.6-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,448 kB
  • sloc: ansic: 66,059; sh: 4,279; perl: 900; awk: 393; makefile: 375; python: 146
file content (22 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# use flock for apr_file_lock/_unlock()
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752872
--- apr.orig/file_io/unix/flock.c
+++ apr/file_io/unix/flock.c
@@ -27,7 +27,7 @@ APR_DECLARE(apr_status_t) apr_file_lock(
 {
     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_unloc
 {
     int rc;
 
-#if defined(HAVE_FCNTL_H)
+#if 0 && defined(HAVE_FCNTL_H)
     {
         struct flock l = { 0 };