diff options
Diffstat (limited to 'src/include/port/atomics/generic-sunpro.h')
| -rw-r--r-- | src/include/port/atomics/generic-sunpro.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/port/atomics/generic-sunpro.h b/src/include/port/atomics/generic-sunpro.h index b71b5230d3..77d3ebe003 100644 --- a/src/include/port/atomics/generic-sunpro.h +++ b/src/include/port/atomics/generic-sunpro.h @@ -17,6 +17,8 @@ * ------------------------------------------------------------------------- */ +#if defined(HAVE_ATOMICS) + /* Older versions of the compiler don't have atomic.h... */ #ifdef HAVE_ATOMIC_H @@ -36,9 +38,13 @@ typedef struct pg_atomic_uint64 #endif /* HAVE_ATOMIC_H */ +#endif /* defined(HAVE_ATOMICS) */ + #if defined(PG_USE_INLINE) || defined(ATOMICS_INCLUDE_DEFINITIONS) +#if defined(HAVE_ATOMICS) + #ifdef HAVE_ATOMIC_H #define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32 @@ -71,4 +77,6 @@ pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, #endif /* HAVE_ATOMIC_H */ +#endif /* defined(HAVE_ATOMICS) */ + #endif /* defined(PG_USE_INLINE) || defined(ATOMICS_INCLUDE_DEFINITIONS) */ |
