2009-02-10 Roland McGrath <roland@redhat.com>

* configure.ac: Check for struct sigcontext.
	* signal.c [LINUX] [M68K] (struct sigcontext): Don't define it if
	[HAVE_STRUCT_SIGCONTEXT].
	From Muttley Meen <muttley.meen@gmail.com>.
This commit is contained in:
Roland McGrath 2009-02-11 03:03:28 +00:00
parent 84e20af5a6
commit 587c7b50ad
2 changed files with 3 additions and 2 deletions

View File

@ -202,7 +202,8 @@ AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
[], [], [#include <stddef.h>
#include <linux/socket.h>])
AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>])
AC_CHECK_TYPES([struct sigcontext_struct],,, [#include <signal.h>])
AC_CHECK_TYPES([struct sigcontext_struct,
struct sigcontext],,, [#include <signal.h>])
AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include <netinet/in.h>])
AC_MP_PROCFS

View File

@ -133,7 +133,7 @@ struct sigcontext_struct {
unsigned long cr2;
};
#else /* !I386 */
#ifdef M68K
#if defined M68K && !defined HAVE_STRUCT_SIGCONTEXT
struct sigcontext
{
unsigned long sc_mask;