From: VMware, Inc <> Date: Mon, 26 Sep 2011 18:49:23 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2011.09.23-491607~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0597ad723ce326bb2c8f40a30dcb2cc60846210c;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/cpuid_info.h b/open-vm-tools/lib/include/cpuid_info.h index 4ce254234..9dc456e45 100644 --- a/open-vm-tools/lib/include/cpuid_info.h +++ b/open-vm-tools/lib/include/cpuid_info.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2008 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2011 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -134,6 +134,7 @@ static INLINE uint32 CPUIDSummary_VIACoresPerPackage(CPUIDSummary *cpuid, uint32 *numThreadsPerCore) { + (void) cpuid; *numThreadsPerCore = 1; return 1; } diff --git a/open-vm-tools/lib/include/posix.h b/open-vm-tools/lib/include/posix.h index 79a33f243..13b7fa183 100644 --- a/open-vm-tools/lib/include/posix.h +++ b/open-vm-tools/lib/include/posix.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2008 VMware, Inc. All rights reserved. + * Copyright (C) 2008-2011 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -277,6 +277,8 @@ Posix_FreeHostent(struct hostent *he) free(he->h_addr_list); free(he); } +#else + (void) he; #endif } diff --git a/open-vm-tools/lib/include/vm_assert.h b/open-vm-tools/lib/include/vm_assert.h index 54cb17655..c5eee3260 100644 --- a/open-vm-tools/lib/include/vm_assert.h +++ b/open-vm-tools/lib/include/vm_assert.h @@ -86,6 +86,9 @@ #include "vm_basic_types.h" #include "vm_basic_defs.h" +#ifdef __cplusplus +extern "C" { +#endif /* * Internal macros, functions, and strings @@ -372,5 +375,8 @@ EXTERN void WarningThrottled(uint32 *count, const char *fmt, ...) assertions \ } +#ifdef __cplusplus +} /* extern "C" */ +#endif #endif /* ifndef _VM_ASSERT_H_ */ diff --git a/open-vm-tools/lib/include/vm_version.h b/open-vm-tools/lib/include/vm_version.h index c1f0b6df6..6e3b47656 100644 --- a/open-vm-tools/lib/include/vm_version.h +++ b/open-vm-tools/lib/include/vm_version.h @@ -259,16 +259,16 @@ #define NETDUMP_FILE_VERSION 1,1,0,PRODUCT_BUILD_NUMBER_NUMERIC #define VDDK_VERSION "5.1.0" #define VDDK_FILE_VERSION 5,1,0,PRODUCT_BUILD_NUMBER_NUMERIC -#define OVFTOOL_VERSION "2.1.0" +#define OVFTOOL_VERSION "e.x.p" #define VDM_CLIENT_VERSION "e.x.p" #define VGAUTH_VERSION "e.x.p" #define VIEWY_VERSION "e.x.p" #define VMCFSDK_VERSION "e.x.p" #define PCOIP_VERSION "e.x.p" #define VIEW_VERSION "0.0.0" +#define HOSTD_VERSION "e.x.p" -// VMRC_PLUGIN_VERSION should match PLAYER_VERSION but can't be e.x.p #ifndef MAKESTR #define MAKESTR(x) #x #define XSTR(x) MAKESTR(x) @@ -277,7 +277,7 @@ // This extra version define is here so the Makefiles can easily pick it up. // See the VMRC_PLUGIN_VERSION section in /mk/defs-onetime.mk -#define VMRC_PLUGIN_VERSION_MAJOR 4 +#define VMRC_PLUGIN_VERSION_MAJOR 5 #define VMRC_PLUGIN_VERSION_MINOR 0 #define VMRC_PLUGIN_VERSION_Z 0 @@ -286,7 +286,7 @@ * #define VMRC_PLUGIN_VERSION_NUMBER \ * XSTR(VMRC_PLUGIN_VERSION_MAJOR) "." XSTR(VMRC_PLUGIN_VERSION_MINOR) "." XSTR(VMRC_PLUGIN_VERSION_Z) */ -#define VMRC_PLUGIN_VERSION_NUMBER "4.0.0" +#define VMRC_PLUGIN_VERSION_NUMBER "5.0.0" /* this version number should always match real VMRC & plugin version number */ #define VMRC_VERSION VMRC_PLUGIN_VERSION_NUMBER @@ -305,7 +305,7 @@ #define USB_ARBITRATOR_VERSION_MAJOR 9 #define USB_ARBITRATOR_VERSION_MINOR 0 -#define USB_ARBITRATOR_VERSION_Z 33 +#define USB_ARBITRATOR_VERSION_Z 38 #define USB_ARBITRATOR_VERSION_BASE USB_ARBITRATOR_VERSION_MAJOR.\ USB_ARBITRATOR_VERSION_MINOR @@ -321,7 +321,7 @@ * USB Arbitrator Component version. This version is used by the linux * installer. See USB_ARBITRATOR_COMPONENT_VERSION_NUMBER in mk/defs-onetime.mk */ -#define USB_ARBITRATOR_COMPONENT_VERSION_NUMBER "9.0.33" +#define USB_ARBITRATOR_COMPONENT_VERSION_NUMBER "9.0.38" #ifdef VMX86_VPX #define VIM_API_TYPE "VirtualCenter"