diff --git a/src/rx/rx_atomic.h b/src/rx/rx_atomic.h index ba80f9cb7d..e920afc2cb 100644 --- a/src/rx/rx_atomic.h +++ b/src/rx/rx_atomic.h @@ -137,9 +137,13 @@ typedef atomic_t rx_atomic_t; #define rx_atomic_dec(X) atomic_dec(X) #define rx_atomic_sub(X, V) atomic_sub(V, X) -#elif defined(AFS_SUN58_ENV) +#elif defined(AFS_SUN510_ENV) || (defined(AFS_SUN58_ENV) && defined(KERNEL) && !defined(UKERNEL)) -# include +# if defined(KERNEL) && !defined(UKERNEL) +# include +# else +# include +# endif typedef struct { volatile unsigned int var;