@@ -1737,6 +1737,7 @@ case "${host}" in
;;
i?86-*-linux*)
SIGNAL_HANDLER=include/i386-signal.h
+ SIGNAL_HANDLER_AUX=include/x86_64-signal.h
;;
# ia64-*)
# SYSDEP_SOURCES=sysdep/ia64.c
@@ -1,7 +1,8 @@
// i386-signal.h - Catch runtime signals and turn them into exceptions
// on an i386 based Linux system.
-/* Copyright (C) 1998, 1999, 2001, 2002, 2006, 2007 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2001, 2002, 2006, 2007, 2011
+ Free Software Foundation
This file is part of libgcj.
@@ -10,6 +11,8 @@ Libgcj License. Please consult the file
details. */
+#ifdef __i386__
+
#ifndef JAVA_SIGNAL_H
#define JAVA_SIGNAL_H 1
@@ -165,3 +168,11 @@ while (0)
#endif /* JAVA_SIGNAL_H */
+#else /* __i386__ */
+
+/* This is for the 64-bit subsystem on i386. */
+
+#define sigcontext_struct sigcontext
+#include <java-signal-aux.h>
+
+#endif /* __i386__ */