diff --git a/mozilla/nsprpub/pr/src/md/unix/aix.c b/mozilla/nsprpub/pr/src/md/unix/aix.c index 544b2584cdc..879c6adcd83 100644 --- a/mozilla/nsprpub/pr/src/md/unix/aix.c +++ b/mozilla/nsprpub/pr/src/md/unix/aix.c @@ -26,7 +26,6 @@ #ifndef AIX4_1 -#include #include #include #include @@ -35,18 +34,6 @@ static void *aix_handle = NULL; static int (*aix_select_fcn)() = NULL; static int (*aix_poll_fcn)() = NULL; -PRInt32 _AIX_AtomicSet(PRInt32 *val, PRInt32 newval) -{ - PRIntn oldval; - boolean_t stored; - oldval = fetch_and_add((atomic_p)val, 0); - do - { - stored = compare_and_swap((atomic_p)val, &oldval, newval); - } while (!stored); - return oldval; -} /* _AIX_AtomicSet */ - int _MD_SELECT(int width, fd_set *r, fd_set *w, fd_set *e, struct timeval *t) { int rv; @@ -106,6 +93,20 @@ void _pr_aix_dummy() #endif /* !AIX4_1 */ +#include + +PRInt32 _AIX_AtomicSet(PRInt32 *val, PRInt32 newval) +{ + PRIntn oldval; + boolean_t stored; + oldval = fetch_and_add((atomic_p)val, 0); + do + { + stored = compare_and_swap((atomic_p)val, &oldval, newval); + } while (!stored); + return oldval; +} /* _AIX_AtomicSet */ + #if !defined(PTHREADS_USER) #ifdef _PR_PTHREADS