Pārlūkot izejas kodu

588867 - entryusn plugin fails on solaris

https://bugzilla.redhat.com/show_bug.cgi?id=588867

Fix description: _sparcv9_AtomicAdd, _sparcv9_AtomicSub, and
_sparcv9_AtomicSet were not correctly declared.  It brought
in the implicit function declaration, where the return value
were casted to 32-bit integer and the comparison against the
64-bit unsigned integer failed.  The comparison was in the
endless loop and it caused the server hang.
Noriko Hosoi 15 gadi atpakaļ
vecāks
revīzija
80f3188a3a
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      ldap/servers/slapd/slapi_counter.c

+ 3 - 3
ldap/servers/slapd/slapi_counter.c

@@ -42,9 +42,9 @@
 #include "slap.h"
 
 #ifdef SOLARIS
-PRUint64 _sparcv9_AtomicSet_il(PRUint64 *address, PRUint64 newval);
-PRUint64 _sparcv9_AtomicAdd_il(PRUint64 *address, PRUint64 val);
-PRUint64 _sparcv9_AtomicSub_il(PRUint64 *address, PRUint64 val);
+PRUint64 _sparcv9_AtomicSet(PRUint64 *address, PRUint64 newval);
+PRUint64 _sparcv9_AtomicAdd(PRUint64 *address, PRUint64 val);
+PRUint64 _sparcv9_AtomicSub(PRUint64 *address, PRUint64 val);
 #endif
 
 #ifdef HPUX