summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <ramil@ram-book.(none)>2005-05-06 16:12:42 +0500
committerunknown <ramil@ram-book.(none)>2005-05-06 16:12:42 +0500
commitf547b03edbb3a078c9917184b7469cc324f99bfb (patch)
tree472b541234e6ace2b08233ed050014fced0468db /include
parentfc80e4c121926b9eec6bf03dfeba634270a308e5 (diff)
downloadmariadb-git-f547b03edbb3a078c9917184b7469cc324f99bfb.tar.gz
A fix (bug #7970: CONFIG_NR_CPUS not defined for kernel header percpu.h).
include/my_global.h: A fix (bug #7970: CONFIG_NR_CPUS not defined for kernel header percpu.h). We don't need to manipulate HAVE_ATOMIC_XXX here as we test it in the configure.
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/my_global.h b/include/my_global.h
index bf6f3b52c4b..017cdea140a 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -214,18 +214,6 @@ C_MODE_START int __cxa_pure_virtual() {\
#define BAD_MEMCPY
#endif
-/* In Linux-alpha we have atomic.h if we are using gcc */
-#if defined(TARGET_OS_LINUX) && defined(__GNUC__) && defined(__alpha__) && (__GNUC__ > 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ >= 95)) && !defined(HAVE_ATOMIC_ADD)
-#define HAVE_ATOMIC_ADD
-#define HAVE_ATOMIC_SUB
-#endif
-
-/* In Linux-ia64 including atomic.h will give us an error */
-#if (defined(TARGET_OS_LINUX) && defined(__GNUC__) && (defined(__ia64__)||defined(__powerpc64__))) || !defined(THREAD)
-#undef HAVE_ATOMIC_ADD
-#undef HAVE_ATOMIC_SUB
-#endif
-
#if defined(_lint) && !defined(lint)
#define lint
#endif