#include "hostType.h"
#include "str.h"
-#if defined(VMX86_SERVER) || (defined(VMX86_VPX) && defined(linux))
+/*
+ * XXX see bug 651592 for how to make this not warn on newer linux hosts
+ * that have deprecated sysctl.
+ */
+#if defined(VMX86_SERVER) || ((defined(VMX86_VPX) || defined(VMX86_VMACORE)) && defined(linux))
#include <errno.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include "uwvmkAPI.h"
+#define DO_REAL_HOST_CHECK
#endif
#define LGPFX "HOSTTYPE:"
static int
HostTypeOSVMKernelType(void)
{
-#if defined(VMX86_SERVER) || (defined(VMX86_VPX) && defined(linux))
+#ifdef DO_REAL_HOST_CHECK
static int vmkernelType = -1;
if (vmkernelType == -1) {
return (vmkernelType);
#else
- /* Non-ESX builds are never running on the VMKernel. */
+ /* Non-linux builds are never running in a userworld */
return 0;
#endif
}
VixError
VixToolsSetFileAttributes(VixCommandRequestHeader *requestMsg) // IN
{
-#if (defined(_WIN32) || defined(__linux__))
+#if (defined(_WIN32) || defined(__linux__) || defined(sun))
VixError err = VIX_OK;
Bool impersonatingVMWareUser = FALSE;
void *userToken = NULL;
}
#else
if (windowsAttributeSpecified) {
- Debug("%s: Invalid attributes received for Unix Guest\n",
+ Debug("%s: Invalid attributes received for Posix Guest\n",
__FUNCTION__);
err = VIX_E_INVALID_ARG;
goto abort;