From: Ivan Maidanski Date: Mon, 6 Apr 2015 17:06:47 +0000 (+0300) Subject: Do not include sigcontext.h and asm/sigcontext.h X-Git-Tag: gc7_4_4~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71a53ffc9191d515388689a3fd8700ba723a588e;p=gc Do not include sigcontext.h and asm/sigcontext.h (these Linux headers define sigcontext which is no longer used as replaced with ucontext_t in GC 7.0alpha1) * os_dep.c: Do not include linux/version.h (do not test LINUX_VERSION_CODE), asm/signal.h, sigcontext.h, asm/sigcontext.h since struct sigcontext not used in GC v7+. --- diff --git a/os_dep.c b/os_dep.c index d3f1cd8c..a3d89975 100644 --- a/os_dep.c +++ b/os_dep.c @@ -16,36 +16,6 @@ #include "private/gc_priv.h" -#if defined(LINUX) && !defined(POWERPC) && !defined(NO_SIGCONTEXT_H) -# include -# if (LINUX_VERSION_CODE <= 0x10400) - /* Ugly hack to get struct sigcontext_struct definition. Required */ - /* for some early 1.3.X releases. Will hopefully go away soon. */ - /* in some later Linux releases, asm/sigcontext.h may have to */ - /* be included instead. */ -# define __KERNEL__ -# include -# undef __KERNEL__ -# else - /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */ - /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */ - /* prototypes, so we have to include the top-level sigcontext.h to */ - /* make sure the former gets defined to be the latter if appropriate. */ -# include -# if 2 <= __GLIBC__ -# if 2 == __GLIBC__ && 0 == __GLIBC_MINOR__ - /* glibc 2.1 no longer has sigcontext.h. But signal.h */ - /* has the right declaration for glibc 2.1. */ -# include -# endif /* 0 == __GLIBC_MINOR__ */ -# else /* __GLIBC__ < 2 */ - /* libc5 doesn't have : go directly with the kernel */ - /* one. Check LINUX_VERSION_CODE to see which we should reference. */ -# include -# endif /* __GLIBC__ < 2 */ -# endif -#endif /* LINUX && !POWERPC */ - #if !defined(OS2) && !defined(PCR) && !defined(AMIGA) && !defined(MACOS) \ && !defined(MSWINCE) && !defined(__CC_ARM) # include