Added OS recognition for OpenBSD/zaurus

This commit is contained in:
Pierre Pronchery 2007-06-29 17:07:09 +00:00
parent 5329dd76c1
commit 9acc484c02
2 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@ const String * sHostArch[HA_LAST+1] =
"i386", "i486", "i586", "i686", "i386", "i486", "i586", "i686",
"sparc", "sparc64", "sparc", "sparc64",
"sun4u", "sun4u",
"zaurus",
"unknown" "unknown"
}; };
const String * sHostOS[HO_LAST+1] = const String * sHostOS[HO_LAST+1] =
@ -52,6 +53,8 @@ const struct HostKernel sHostKernel[] =
{ HO_GNU_LINUX, "2.6" }, { HO_GNU_LINUX, "2.6" },
{ HO_NETBSD, "2.0" }, { HO_NETBSD, "2.0" },
{ HO_NETBSD, "3.0" }, { HO_NETBSD, "3.0" },
{ HO_OPENBSD, "4.0" },
{ HO_OPENBSD, "4.1" },
{ HO_SUNOS, "5.7", }, { HO_SUNOS, "5.7", },
{ HO_SUNOS, "5.8", }, { HO_SUNOS, "5.8", },
{ HO_SUNOS, "5.9", }, { HO_SUNOS, "5.9", },

View File

@ -28,6 +28,7 @@ typedef enum _HostArch
HA_I386 = 0, HA_I486, HA_I586, HA_I686, HA_I386 = 0, HA_I486, HA_I586, HA_I686,
HA_SPARC, HA_SPARC64, HA_SPARC, HA_SPARC64,
HA_SUN4U, HA_SUN4U,
HA_ZAURUS,
HA_UNKNOWN HA_UNKNOWN
} HostArch; } HostArch;
# define HA_LAST HA_UNKNOWN # define HA_LAST HA_UNKNOWN
@ -47,6 +48,7 @@ typedef enum _HostKernel
{ {
HK_LINUX20 = 0, HK_LINUX22, HK_LINUX24, HK_LINUX26, HK_LINUX20 = 0, HK_LINUX22, HK_LINUX24, HK_LINUX26,
HK_NETBSD20, HK_NETBSD30, HK_NETBSD20, HK_NETBSD30,
HK_OPENBSD40, HK_OPENBSD41,
HK_SUNOS57, HK_SUNOS58, HK_SUNOS59, HK_SUNOS510, HK_SUNOS57, HK_SUNOS58, HK_SUNOS59, HK_SUNOS510,
HK_UNKNOWN HK_UNKNOWN
} HostKernel; } HostKernel;