summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 8524328a47b..d1b3c516555 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -161,7 +161,7 @@
#endif
/* In Linux-ia64 including atomic.h will give us an error */
-#if (defined(HAVE_LINUXTHREADS) && defined(__GNUC__) && defined(__ia64__)) || !defined(THREAD)
+#if (defined(HAVE_LINUXTHREADS) && defined(__GNUC__) && (defined(__ia64__)||defined(__powerpc64__))) || !defined(THREAD)
#undef HAVE_ATOMIC_ADD
#undef HAVE_ATOMIC_SUB
#endif
@@ -228,6 +228,7 @@
#endif
#ifdef HAVE_ATOMIC_ADD
#define __SMP__
+#define CONFIG_SMP
#include <asm/atomic.h>
#endif