diff -Naur pristine/erts/emulator/beam/sys.h otp_src_R10B-10/erts/emulator/beam/sys.h
--- pristine/erts/emulator/beam/sys.h	2005-05-10 10:08:21.000000000 -0500
+++ otp_src_R10B-10/erts/emulator/beam/sys.h	2006-05-17 14:18:29.571064998 -0500
@@ -126,10 +126,12 @@
 
 #if __GNUC__
 #  define __noreturn __attribute__((noreturn))
-#  if __GNUC__ >= 3
-#    define __deprecated __attribute__((deprecated))
-#  else
-#    define __deprecated
+#  ifndef __deprecated
+#    if __GNUC__ >= 3
+#      define __deprecated __attribute__((deprecated))
+#    else
+#      define __deprecated
+#    endif
 #  endif
 #else
 #  define __noreturn
