From 09e426bf3cdde89b034546082748867c7825902a Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 May 2005 18:33:21 +0500 Subject: a fix (bug #10438: Raid stopped working because of change in atomic add detection). include/my_global.h: a fix (bug #10438: Raid stopped working because of change in atomic add detection). In order to compile with atomic.h on itanium we redefine 'new' because it's used as a local variable in this file and conflicts with a kernel header. --- include/my_global.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/my_global.h') diff --git a/include/my_global.h b/include/my_global.h index a9468f6561e..62c6a5d1e4a 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -287,9 +287,15 @@ C_MODE_START int __cxa_pure_virtual() {\ #ifndef CONFIG_SMP #define CONFIG_SMP #endif +#if defined(__ia64__) +#define new my_arg_new +#endif C_MODE_START #include C_MODE_END +#if defined(__ia64__) +#undef new +#endif #endif #include /* Recommended by debian */ /* We need the following to go around a problem with openssl on solaris */ -- cgit v1.2.1