From: Oliver Kurth Date: Tue, 24 Apr 2018 00:08:17 +0000 (-0700) Subject: Common header file changes not applicable to open-vm-tools. X-Git-Tag: stable-10.3.0~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab36b3227275a5beded8a5115929e2d649c6aad3;p=thirdparty%2Fopen-vm-tools.git Common header file changes not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/poll.h b/open-vm-tools/lib/include/poll.h index 988fe6d03..05ecb9868 100644 --- a/open-vm-tools/lib/include/poll.h +++ b/open-vm-tools/lib/include/poll.h @@ -107,10 +107,17 @@ typedef enum PollClass { POLL_CLASS_CPT, POLL_CLASS_MKS, POLL_FIXED_CLASSES, + POLL_DEFAULT_FIXED_CLASSES, /* Size enum to maximum */ POLL_MAX_CLASSES = 31, } PollClass; +/* + * Do not use; Special pseudo private poll class supported by + * PollDefault only + */ +#define POLL_DEFAULT_CLASS_NET POLL_FIXED_CLASSES +#define POLL_DEFAULT_CS_NET PollClassSet_Singleton(POLL_DEFAULT_CLASS_NET) /* * Each callback is registered in a set of classes diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index c3318b6d6..a74d36311 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -144,7 +144,7 @@ /* The Solaris 9 cross-compiler complains about these not being used */ #ifndef sun -static INLINE int +static INLINE int Min(int a, int b) { return a < b ? a : b; @@ -156,7 +156,7 @@ Min(int a, int b) #endif #ifndef sun -static INLINE int +static INLINE int Max(int a, int b) { return a > b ? a : b; @@ -211,7 +211,7 @@ Max(int a, int b) #endif -/* +/* * Token concatenation * * The C preprocessor doesn't prescan arguments when they are @@ -423,7 +423,7 @@ Max(int a, int b) #ifdef _MSC_VER #ifdef __cplusplus extern "C" -#endif +#endif void *_ReturnAddress(void); #pragma intrinsic(_ReturnAddress) #define GetReturnAddress() _ReturnAddress() @@ -556,7 +556,7 @@ typedef int pid_t; * driver. */ -#ifdef _WIN32 +#if defined(_WIN32) && defined(_MSC_VER) #define PATH_MAX 256 #ifndef strcasecmp #define strcasecmp(_s1,_s2) _stricmp((_s1),(_s2)) @@ -638,7 +638,7 @@ typedef int pid_t; #define RELEASE_ONLY(x) x #else #define vmx86_release 0 -#define RELEASE_ONLY(x) +#define RELEASE_ONLY(x) #endif #ifdef VMX86_SERVER