Subject: Linux emulation version
To: None <port-amd64@netbsd.org>
From: Robert Swindells <rjs@fdy2.demon.co.uk>
List: port-amd64
Date: 12/07/2005 19:21:05
Is there any particular reason why the reported Linux version is 2.0.38
for amd64 ?

I was unable to install suse91_base until I changed it to 2.4.18 as it
is for i386 and powerpc.

Robert Swindells

Index: linux_sysctl.c
===================================================================
RCS file: /cvsroot/src/sys/compat/linux/common/linux_sysctl.c,v
retrieving revision 1.17
diff -u -r1.17 linux_sysctl.c
--- linux_sysctl.c      20 Jun 2005 02:49:19 -0000      1.17
+++ linux_sysctl.c      7 Dec 2005 19:23:24 -0000
@@ -60,7 +60,7 @@
 #include <compat/linux/common/linux_exec.h>
 
 char linux_sysname[128] = "Linux";
-#if defined(__i386__) || defined(__powerpc__)
+#if defined(__i386__) || defined(__powerpc__) || defined(__amd64__)
 char linux_release[128] = "2.4.18";
 char linux_version[128] = "#0 Wed Feb 20 20:00:02 CET 2002";
 #else