mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
rx: Use sys/atomic_op.h on AIX 4.1+
Since commit 4505af8002
(aix: add atomic support), rx_atomic.h has used
sys/atomic_op.h on AIX 6.1 and newer, but sys/atomic_op.h is available
as far back as AIX 4.1. So, use sys/atomic_op.h on AIX 4.1+, so older
versions of AIX can use proper atomics instead of the fallback
implementation.
Change-Id: I49e2f257abe05c25aaebe06847c5230392a93780
Reviewed-on: https://gerrit.openafs.org/15975
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
parent
a0852d93e5
commit
e79985dbf2
@ -86,7 +86,7 @@ rx_atomic_sub(rx_atomic_t *atomic, int change)
|
||||
InterlockedExchangeAdd(&atomic->var, 0 - change);
|
||||
}
|
||||
|
||||
#elif defined(AFS_AIX61_ENV) || defined(AFS_USR_AIX61_ENV)
|
||||
#elif defined(AFS_AIX41_ENV) || defined(AFS_USR_AIX41_ENV)
|
||||
# include <sys/atomic_op.h>
|
||||
|
||||
typedef struct {
|
||||
|
Loading…
Reference in New Issue
Block a user