From e79985dbf21acec5915e5ee75a42a34db0540848 Mon Sep 17 00:00:00 2001 From: Ben Huntsman Date: Mon, 2 Dec 2024 16:43:57 -0800 Subject: [PATCH] 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 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Andrew Deason --- src/rx/rx_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx_atomic.h b/src/rx/rx_atomic.h index cbe3587b9e..b42db5136f 100644 --- a/src/rx/rx_atomic.h +++ b/src/rx/rx_atomic.h @@ -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 typedef struct {