]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Sun, 5 Dec 2021 06:55:11 +0000 (22:55 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Sun, 5 Dec 2021 06:55:11 +0000 (22:55 -0800)
open-vm-tools/lib/include/vm_assert.h
open-vm-tools/lib/include/vm_basic_defs.h

index 04e90ac02679d69804a2c021a0f5164deff2585b..c96f62a668ea031e80fcc5dfb4cc25fa785af141 100644 (file)
 
 // 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 <stdarg.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {
index c2d48de10add2e4788cfe283b406d08a9d00d710..6d267331f665cbfd179e6815acc02caa78dffb78 100644 (file)
  * 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 <linux/stddef.h>
+#elif !defined(VMKERNEL)
 #  include <stddef.h>
 #else
    /*