summaryrefslogtreecommitdiff
path: root/atomic
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-02-13 01:22:18 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-02-13 01:22:18 +0000
commit80bb04ceafd65efcf3a98891b41a194fbe418c60 (patch)
treec9f9e311195cfce0beafab7adb55b49043940e02 /atomic
parentbe6930118947bea8813d3b047e4a66388216d7fd (diff)
downloadlibapr-80bb04ceafd65efcf3a98891b41a194fbe418c60.tar.gz
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
Diffstat (limited to 'atomic')
-rw-r--r--atomic/unix/apr_atomic.c5
1 files changed, 5 insertions, 0 deletions
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 */