From 80bb04ceafd65efcf3a98891b41a194fbe418c60 Mon Sep 17 00:00:00 2001 From: trawick Date: Wed, 13 Feb 2002 01:22:18 +0000 Subject: get APR to build with --disable-threads... there is no implementation of apr atomic stuff for Unix unless APR_HAS_THREADS git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62971 13f79535-47bb-0310-9956-ffa450edef68 --- atomic/unix/apr_atomic.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'atomic') diff --git a/atomic/unix/apr_atomic.c b/atomic/unix/apr_atomic.c index d85d60ddf..cedcb9fd5 100644 --- a/atomic/unix/apr_atomic.c +++ b/atomic/unix/apr_atomic.c @@ -7,6 +7,8 @@ /* win32 implementation is all macros */ #else +#if APR_HAS_THREADS + #define NUM_ATOMIC_HASH 7 /* shift by 2 to get rid of alignment issues */ #define ATOMIC_HASH(x) (int)(((long)x>>2)%NUM_ATOMIC_HASH) @@ -92,4 +94,7 @@ long apr_atomic_cas(volatile long *mem,long with,long cmp) } return *mem; } + +#endif /* APR_HAS_THREADS */ + #endif /* default implementation */ -- cgit v1.2.1