Commit 09e426bf authored by unknown's avatar unknown
Browse files

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.
parent e514a1ee
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 <asm/atomic.h>
C_MODE_END
#if defined(__ia64__)
#undef new
#endif
#endif
#include <errno.h>				/* Recommended by debian */
/* We need the following to go around a problem with openssl on solaris */