From: John Wolfe Date: Sun, 5 Dec 2021 06:55:11 +0000 (-0800) Subject: Changes to common header files not applicable to open-vm-tools. X-Git-Tag: stable-12.0.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3cb33a91bb97a17b575b77fa9a622b1a9a74a74;p=thirdparty%2Fopen-vm-tools.git Changes to common header files not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_assert.h b/open-vm-tools/lib/include/vm_assert.h index 04e90ac02..c96f62a66 100644 --- a/open-vm-tools/lib/include/vm_assert.h +++ b/open-vm-tools/lib/include/vm_assert.h @@ -79,7 +79,11 @@ // XXX not necessary except some places include vm_assert.h improperly #include "vm_basic_types.h" + +/* No stdarg.h on Linux kernels 5.15+ */ +#ifndef KBUILD_MODNAME #include +#endif #ifdef __cplusplus extern "C" { diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index c2d48de10..6d267331f 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -89,7 +89,10 @@ * References: * C90 7.17, C99 7.19, C11 7.19 */ -#if !defined(VMKERNEL) +/* Use linux/stddef.h when building Linux kernel modules. */ +#ifdef KBUILD_MODNAME +# include +#elif !defined(VMKERNEL) # include #else /*