* gc_os_dep.c: Do not include <linux/version.h>. It makes no
authorMarius Vollmer <mvo@zagadka.de>
Tue, 13 Feb 2001 18:37:19 +0000 (18:37 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Tue, 13 Feb 2001 18:37:19 +0000 (18:37 +0000)
sense to compile for a specific kernel version.  Do not include
<asm/signal.h> while defining __KERNEL__.  This hack should no
longer be needed and caused problems.

libguile/gc_os_dep.c

index d9a11bf..9b0bea1 100644 (file)
@@ -1379,15 +1379,19 @@ word x;
 # endif
 
 # if defined(LINUX) && !defined(POWERPC)
+
+#if 0 
 #   include <linux/version.h>
 #   if (LINUX_VERSION_CODE <= 0x10400)
-      /* Ugly hack to get struct sigcontext_struct definition.  Required      */
+      /* 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 <asm/signal.h>
 #     undef __KERNEL__
+#endif
+
 #   else
       /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */
       /* struct sigcontext.  libc6 (glibc2) uses "struct sigcontext" in     */