diff options
author | Rich Megginson <rmeggins@redhat.com> | 2009-04-06 18:11:18 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2009-04-06 18:11:18 +0000 |
commit | cb80c9943cfde17a36108b49a57616cf260b070e (patch) | |
tree | 06dfebfbe9b67f88a1b7e71012f5aabfae55ee7c | |
parent | 350238782ac664195a350d85c40768f5cc83f66e (diff) | |
download | ds-cb80c9943cfde17a36108b49a57616cf260b070e.tar.gz ds-cb80c9943cfde17a36108b49a57616cf260b070e.tar.xz ds-cb80c9943cfde17a36108b49a57616cf260b070e.zip |
re-enable ppc support
NOTE: We do not have support for atomic 64-bit counters on ppc - ppc platorms use the mutex approach instead
-rw-r--r-- | ldap/servers/slapd/slapi_counter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ldap/servers/slapd/slapi_counter.c b/ldap/servers/slapd/slapi_counter.c index c9930d59..0f56c8ac 100644 --- a/ldap/servers/slapd/slapi_counter.c +++ b/ldap/servers/slapd/slapi_counter.c @@ -53,6 +53,7 @@ PRUint64 _sparcv9_AtomicSub_il(PRUint64 *address, PRUint64 val); #endif #endif +#ifdef ATOMIC_64BIT_OPERATIONS #if defined LINUX && (defined CPU_x86 || !HAVE_DECL___SYNC_ADD_AND_FETCH) /* On systems that don't have the 64-bit GCC atomic builtins, we need to * implement our own atomic functions using inline assembly code. */ @@ -69,6 +70,8 @@ PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval); #define __sync_add_and_fetch __sync_add_and_fetch_8 #define __sync_sub_and_fetch __sync_sub_and_fetch_8 #endif +#endif /* ATOMIC_64BIT_OPERATIONS */ + /* * Counter Structure @@ -428,6 +431,7 @@ PRUint64 slapi_counter_get_value(Slapi_Counter *counter) return value; } +#ifdef ATOMIC_64BIT_OPERATIONS #if defined LINUX && (defined CPU_x86 || !HAVE_DECL___SYNC_ADD_AND_FETCH) /* On systems that don't have the 64-bit GCC atomic builtins, we need to * implement our own atomic add and subtract functions using inline @@ -520,3 +524,4 @@ PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval) return retval; } #endif /* LINUX && (defined CPU_x86 || !HAVE_DECL___SYNC_ADD_AND_FETCH) */ +#endif /* ATOMIC_64BIT_OPERATIONS */ |