From: Katy Feng Date: Fri, 3 Feb 2023 17:41:08 +0000 (-0800) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.3.0~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b40e6808fd6bb6483cef741cd80c3ab58f4094c8;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_basic_types.h b/open-vm-tools/lib/include/vm_basic_types.h index baa265f69..5cc3f700e 100644 --- a/open-vm-tools/lib/include/vm_basic_types.h +++ b/open-vm-tools/lib/include/vm_basic_types.h @@ -202,7 +202,7 @@ * - Linux userlevel uses 'long' uint64_t * - Windows uses 'long long' uint64_t */ -#if !defined(VMKERNEL) && !defined(DECODERLIB) && \ +#if !defined(VMKERNEL) && \ defined(__linux__) && defined(__KERNEL__) # include # include @@ -244,7 +244,7 @@ * - VMM does not have POSIX headers * - Windows does not define ssize_t */ -#if defined(VMKERNEL) || defined(VMM) || defined(DECODERLIB) +#if defined(VMKERNEL) || defined(VMM) /* Guard against FreeBSD collison. */ # if !defined(_SIZE_T_DEFINED) && !defined(_SIZE_T) # define _SIZE_T_DEFINED @@ -392,7 +392,7 @@ typedef int64 VmTimeVirtualClock; /* Virtual Clock kept in CPU cycles */ #define FMTPD "I" #define FMTH "I" #endif -#elif defined __APPLE__ || (!defined VMKERNEL && !defined DECODERLIB && \ +#elif defined __APPLE__ || (!defined VMKERNEL && \ defined __linux__ && defined __KERNEL__) /* semi-LLP64 targets; 'long' is 64-bit, but uint64_t is 'long long' */ #define FMT64 "ll"