}
-#if !defined __APPLE__
+#if !defined __APPLE__ && !defined USERWORLD
/*
*-----------------------------------------------------------------------------
*
#endif
+#ifndef USERWORLD
/*
*----------------------------------------------------------------------
*
}
return out;
}
+#endif
/*
Str_Sprintf(osNameFull, sizeof osNameFull, "%s %s", buf.sysname,
buf.release);
-#if defined __APPLE__
+#if defined USERWORLD
+ if (buf.release[0] <= '4') {
+ Str_Strcpy(osName, "vmkernel", sizeof osName);
+ } else {
+ Str_Strcpy(osName, "vmkernel5", sizeof osName);
+ }
+ Str_Snprintf(osNameFull, sizeof osNameFull, "VMware ESXi %c.x",
+ buf.release[0]);
+#elif defined __APPLE__
{
/*
* The easiest way is to invoke "system_profiler" and hope that the
}
#endif
+#ifndef USERWORLD
if (Hostinfo_GetSystemBitness() == 64) {
if (strlen(osName) + sizeof STR_OS_64BIT_SUFFIX > sizeof osName) {
Warning("%s: Error: buffer too small\n", __FUNCTION__);
}
Str_Strcat(osName, STR_OS_64BIT_SUFFIX, sizeof osName);
}
+#endif
/*
* Before returning, truncate the \n character at the end of the full name.