diff options
author | unknown <ramil@ram-book.(none)> | 2005-05-06 16:12:42 +0500 |
---|---|---|
committer | unknown <ramil@ram-book.(none)> | 2005-05-06 16:12:42 +0500 |
commit | 3174e7d9b9056d38db59841cfbc3841dc27613fa (patch) | |
tree | 472b541234e6ace2b08233ed050014fced0468db /include | |
parent | 6c0af62db06c5d3107d418f8bb2788c16e612e2d (diff) | |
download | mariadb-git-3174e7d9b9056d38db59841cfbc3841dc27613fa.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.h | 12 |
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 |