diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-06-26 00:22:08 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-06-26 00:22:08 +0000 |
commit | 6ca3bd2d7834c9f1fc9c1d4cc5805370190df7c5 (patch) | |
tree | b582a58ca79b3a45fe725cbd1cc62e430abcd2a8 /include/arch/unix/locks.h | |
parent | b8bcc26a41a45ffa99273619d58819735d857b0f (diff) | |
download | libapr-6ca3bd2d7834c9f1fc9c1d4cc5805370190df7c5.tar.gz |
Fix the check for flock() so we don't get confused on AIX.
Instead of checking for the presence of <sys/file.h>, really
check for the function.
(I see flock() in the man pages but ld can't find it. At least
APR builds okay now.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61796 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/unix/locks.h')
-rw-r--r-- | include/arch/unix/locks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/arch/unix/locks.h b/include/arch/unix/locks.h index ba25d9ed0..02a96b97f 100644 --- a/include/arch/unix/locks.h +++ b/include/arch/unix/locks.h @@ -123,7 +123,7 @@ extern const apr_unix_lock_methods_t apr_unix_fcntl_methods; #define APR_HAS_FCNTL_SERIALIZE 0 #endif -#if defined(HAVE_SYS_FILE_H) && defined(HAVE_LOCK_EX) +#if defined(HAVE_FLOCK) && defined(HAVE_LOCK_EX) #define APR_HAS_FLOCK_SERIALIZE 1 extern const apr_unix_lock_methods_t apr_unix_flock_methods; #else |