python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / bdwgc / 0002-Do-not-include-sigcontext.h-and-asm-sigcontext.h.patch
blob40c9063103051ad0458cb56d2195843407fec229
1 From c887470e0e3310c81ecdb7e736bc5d2ead45db2a Mon Sep 17 00:00:00 2001
2 From: Ivan Maidanski <ivmai@mail.ru>
3 Date: Mon, 6 Apr 2015 20:06:47 +0300
4 Subject: [PATCH 1/1] Do not include sigcontext.h and asm/sigcontext.h (these
5 Linux headers define sigcontext which is no longer used as replaced with
6 ucontext_t in GC 7.0alpha1)
8 * os_dep.c: Do not include linux/version.h (do not test
9 LINUX_VERSION_CODE), asm/signal.h, sigcontext.h, asm/sigcontext.h
10 since struct sigcontext not used in GC v7+.
12 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
13 Upstream-status: backport
14 ---
15 os_dep.c | 30 ------------------------------
16 1 file changed, 30 deletions(-)
18 diff --git a/os_dep.c b/os_dep.c
19 index f62d4ed..a1bafbd 100644
20 --- a/os_dep.c
21 +++ b/os_dep.c
22 @@ -16,36 +16,6 @@
24 #include "private/gc_priv.h"
26 -#if defined(LINUX) && !defined(POWERPC) && !defined(NO_SIGCONTEXT_H)
27 -# include <linux/version.h>
28 -# if (LINUX_VERSION_CODE <= 0x10400)
29 - /* Ugly hack to get struct sigcontext_struct definition. Required */
30 - /* for some early 1.3.X releases. Will hopefully go away soon. */
31 - /* in some later Linux releases, asm/sigcontext.h may have to */
32 - /* be included instead. */
33 -# define __KERNEL__
34 -# include <asm/signal.h>
35 -# undef __KERNEL__
36 -# else
37 - /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */
38 - /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */
39 - /* prototypes, so we have to include the top-level sigcontext.h to */
40 - /* make sure the former gets defined to be the latter if appropriate. */
41 -# include <features.h>
42 -# if 2 <= __GLIBC__
43 -# if 2 == __GLIBC__ && 0 == __GLIBC_MINOR__
44 - /* glibc 2.1 no longer has sigcontext.h. But signal.h */
45 - /* has the right declaration for glibc 2.1. */
46 -# include <sigcontext.h>
47 -# endif /* 0 == __GLIBC_MINOR__ */
48 -# else /* __GLIBC__ < 2 */
49 - /* libc5 doesn't have <sigcontext.h>: go directly with the kernel */
50 - /* one. Check LINUX_VERSION_CODE to see which we should reference. */
51 -# include <asm/sigcontext.h>
52 -# endif /* __GLIBC__ < 2 */
53 -# endif
54 -#endif /* LINUX && !POWERPC */
56 #if !defined(OS2) && !defined(PCR) && !defined(AMIGA) && !defined(MACOS) \
57 && !defined(MSWINCE) && !defined(__CC_ARM)
58 # include <sys/types.h>
59 --
60 2.4.3