From: John Wolfe Date: Mon, 22 Feb 2021 17:37:00 +0000 (-0800) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.3.0~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f8353eb2037f84d7f7ed6101086680ec58bdff;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/log.h b/open-vm-tools/lib/include/log.h index 9deb125d6..9f3283712 100644 --- a/open-vm-tools/lib/include/log.h +++ b/open-vm-tools/lib/include/log.h @@ -26,6 +26,10 @@ #include "productState.h" #include +#if defined(_WIN32) +#include +#endif + #if defined(__cplusplus) extern "C" { #endif @@ -522,9 +526,21 @@ typedef Bool (LogOwnerFunc)(void *userData, const char *fileName); Bool -Log_BoundNumFiles(struct LogOutput *output, - LogOwnerFunc *func, - void *userData); +Log_BoundNumFiles(const LogOutput *output, + LogOwnerFunc *func, + void *userData); + +typedef struct { +#if defined(_WIN32) + HANDLE handle; +#else + int fd; +#endif +} LogFileObject; + +Bool +Log_GetFileObject(const LogOutput *output, + LogFileObject *result); #if defined(VMX86_SERVER) #define LOG_KEEPOLD 6 // Old log files to keep around; ESX value