summaryrefslogtreecommitdiff
path: root/misc/tst-atomic.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tst-atomic.c')
-rw-r--r--misc/tst-atomic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/tst-atomic.c b/misc/tst-atomic.c
index b00a963ab9..8a86838edc 100644
--- a/misc/tst-atomic.c
+++ b/misc/tst-atomic.c
@@ -21,8 +21,12 @@
#include <atomic.h>
#ifndef atomic_t
+#ifdef __clang__
+# define atomic_t long
+#else
# define atomic_t int
#endif
+#endif
/* Test various atomic.h macros. */
static int