From a420d5c111285e300a0fa2f0716b750eeab55e14 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 6 Jan 2013 13:32:09 +0400 Subject: [PATCH] Do not include sigcontext.h if NO_SIGCONTEXT_H (Linux) * os_dep.c: Do not include [asm/]sigcontext.h (and linux/version.h) if NO_SIGCONTEXT_H is defined (only if LINUX and not POWERPC). --- os_dep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os_dep.c b/os_dep.c index 669ff586..563cd6ce 100644 --- a/os_dep.c +++ b/os_dep.c @@ -16,7 +16,7 @@ #include "private/gc_priv.h" -#if defined(LINUX) && !defined(POWERPC) +#if defined(LINUX) && !defined(POWERPC) && !defined(NO_SIGCONTEXT_H) # include # if (LINUX_VERSION_CODE <= 0x10400) /* Ugly hack to get struct sigcontext_struct definition. Required */ @@ -38,13 +38,13 @@ /* has the right declaration for glibc 2.1. */ # include # endif /* 0 == __GLIBC_MINOR__ */ -# else /* not 2 <= __GLIBC__ */ +# 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 /* 2 <= __GLIBC__ */ +# endif /* __GLIBC__ < 2 */ # endif -#endif +#endif /* LINUX && !POWERPC */ #if !defined(OS2) && !defined(PCR) && !defined(AMIGA) && !defined(MACOS) \ && !defined(MSWINCE) && !defined(__CC_ARM) -- 2.40.0