diff options
author | Jean-Marc Lenoir | 2022-01-05 11:11:02 +0100 |
---|---|---|
committer | Jean-Marc Lenoir | 2022-01-05 11:11:02 +0100 |
commit | 040e9b73aa04403ee2ed155317611f9ae9a83eae (patch) | |
tree | 6ff28cd80deec182d49f75e7e9aeb91387405a79 /vmmon.patch | |
parent | fbb5a65eeb5fa33b98b9e26b6d4180e29b8905c2 (diff) | |
download | aur-040e9b73aa04403ee2ed155317611f9ae9a83eae.tar.gz |
Compatibility with Linux 5.16-rc8
Diffstat (limited to 'vmmon.patch')
-rw-r--r-- | vmmon.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vmmon.patch b/vmmon.patch index 6b496decf875..27e8fb449b08 100644 --- a/vmmon.patch +++ b/vmmon.patch @@ -280,3 +280,33 @@ /* * Do not exit thread until we are told to do so. */ +From 4232f780eb114f22498f3274eaeef81d8c63f2ab Mon Sep 17 00:00:00 2001 +From: Michal Kubecek <mkubecek@suse.cz> +Date: Tue, 9 Nov 2021 09:01:57 +0100 +Subject: [PATCH] modules: fix stddef.h include + +After mainline commit 04e85bbf71c9 ("isystem: delete global -isystem +compile option") in 5.16-rc1, vm_basic_types.h in both vmmon and vmnet +does not find (userspace) stddef.h any more. As it should not include this +header anyway, fix the include directives to include stddef.h from kernel. + +Kernel version of stddef.h has been available since the beginning of git so +that it is safe to include it regardless of kernel version. +--- + vmmon-only/include/vm_basic_defs.h | 2 +- + vmnet-only/vm_basic_defs.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/vmmon-only/include/vm_basic_defs.h b/vmmon-only/include/vm_basic_defs.h +index 0ec30b3..b920e2d 100644 +--- a/vmmon-only/include/vm_basic_defs.h ++++ b/vmmon-only/include/vm_basic_defs.h +@@ -51,7 +51,7 @@ + * C90 7.17, C99 7.19, C11 7.19 + */ + #if !defined(VMKERNEL) +-# include <stddef.h> ++# include <linux/stddef.h> + #else + /* + * Vmkernel's bogus __FreeBSD__ value causes gcc <stddef.h> to break. |