[PATCH] Fix ia64 sys/ucontext.h
Jakub Jelinek
jakub@redhat.com
Mon May 21 11:57:00 GMT 2001
Hi!
#define _XOPEN_SOURCE 500
#include <signal.h>
#include <sys/ucontext.h>
does not work on ia64. The issue is that signal.h under these conditions
does not source bits/sigcontext.h.
Fixed thusly (the multiple inclusion guards are on most platforms inside
asm/sigcontext.h, so are not needed in bits/sigcontext.h):
2001-05-21 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Include
bits/sigcontext.h instead of bits/sigstack.h.
* sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add
multiple-inclusion guards.
--- libc/sysdeps/unix/sysv/linux/ia64/sys/ucontext.h.jj Tue Mar 20 13:45:50 2001
+++ libc/sysdeps/unix/sysv/linux/ia64/sys/ucontext.h Mon May 21 20:41:21 2001
@@ -22,7 +22,7 @@
#include <features.h>
#include <signal.h>
-#include <bits/sigstack.h>
+#include <bits/sigcontext.h>
/*
* These are here mostly for backwards compatibility with older Unices.
--- libc/sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h.jj Tue Mar 20 13:45:50 2001
+++ libc/sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h Mon May 21 20:52:12 2001
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jes Sorensen <jes@linuxcare.com>, July 2000
@@ -21,6 +21,9 @@
# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
#endif
+#ifndef _BITS_SIGCONTEXT_H
+#define _BITS_SIGCONTEXT_H 1
+
#include <asm/fpu.h>
#include <bits/sigstack.h>
@@ -50,3 +53,5 @@ struct sigcontext
* include the kernel headers here. */
unsigned long int sc_mask; /* signal mask to restore after handler returns */
};
+
+#endif _BITS_SIGCONTEXT_H
Jakub
More information about the Libc-hacker
mailing list