patch-os_dep_c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- gc-7.4.0.orig/os_dep.c 2013-11-15 21:11:03.000000000 +0100
  2. +++ gc-7.4.0/os_dep.c 2014-04-10 07:14:09.000000000 +0200
  3. @@ -16,36 +16,6 @@
  4. #include "private/gc_priv.h"
  5. -#if defined(LINUX) && !defined(POWERPC) && !defined(NO_SIGCONTEXT_H)
  6. -# include <linux/version.h>
  7. -# if (LINUX_VERSION_CODE <= 0x10400)
  8. - /* Ugly hack to get struct sigcontext_struct definition. Required */
  9. - /* for some early 1.3.X releases. Will hopefully go away soon. */
  10. - /* in some later Linux releases, asm/sigcontext.h may have to */
  11. - /* be included instead. */
  12. -# define __KERNEL__
  13. -# include <asm/signal.h>
  14. -# undef __KERNEL__
  15. -# else
  16. - /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */
  17. - /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */
  18. - /* prototypes, so we have to include the top-level sigcontext.h to */
  19. - /* make sure the former gets defined to be the latter if appropriate. */
  20. -# include <features.h>
  21. -# if 2 <= __GLIBC__
  22. -# if 2 == __GLIBC__ && 0 == __GLIBC_MINOR__
  23. - /* glibc 2.1 no longer has sigcontext.h. But signal.h */
  24. - /* has the right declaration for glibc 2.1. */
  25. -# include <sigcontext.h>
  26. -# endif /* 0 == __GLIBC_MINOR__ */
  27. -# else /* __GLIBC__ < 2 */
  28. - /* libc5 doesn't have <sigcontext.h>: go directly with the kernel */
  29. - /* one. Check LINUX_VERSION_CODE to see which we should reference. */
  30. -# include <asm/sigcontext.h>
  31. -# endif /* __GLIBC__ < 2 */
  32. -# endif
  33. -#endif /* LINUX && !POWERPC */
  34. -
  35. #if !defined(OS2) && !defined(PCR) && !defined(AMIGA) && !defined(MACOS) \
  36. && !defined(MSWINCE) && !defined(__CC_ARM)
  37. # include <sys/types.h>