Author: nkinder
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18274/ldap/servers/slapd
Modified Files:
slapi_counter.c
Log Message:
Resolves: 207457
Summary: Removed static specifier from __sync_*_8 atomic functions.
Index: slapi_counter.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/slapi_counter.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- slapi_counter.c 29 Oct 2008 19:16:29 -0000 1.4
+++ slapi_counter.c 30 Oct 2008 19:06:55 -0000 1.5
@@ -56,8 +56,8 @@
#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. */
-static PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval);
-static PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval);
+PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval);
+PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval);
#endif
#if defined LINUX && !HAVE_DECL___SYNC_ADD_AND_FETCH
@@ -432,7 +432,7 @@
/* 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
* assembly code. */
-static PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval)
+PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval)
{
PRUint64 retval = 0;
@@ -476,7 +476,7 @@
return retval;
}
-static PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval)
+PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval)
{
PRUint64 retval = 0;
Show replies by date