forked from pool/virtualbox
8693c4ad06
- Add file "fixes-for-5.15.patch" to fix builds on kernel 5.15. OBS-URL: https://build.opensuse.org/request/show/917602 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=615
20 lines
498 B
Diff
20 lines
498 B
Diff
|
|
Index: VirtualBox-6.1.26/include/iprt/stdarg.h
|
|
===================================================================
|
|
--- VirtualBox-6.1.26.orig/include/iprt/stdarg.h
|
|
+++ VirtualBox-6.1.26/include/iprt/stdarg.h
|
|
@@ -44,7 +44,12 @@
|
|
# define __builtin_stdarg_start __builtin_va_start
|
|
# endif
|
|
# else
|
|
-# include <stdarg.h>
|
|
+# include <linux/version.h>
|
|
+# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
|
+# include <stdarg.h>
|
|
+# else
|
|
+# include <linux/stdarg.h>
|
|
+# endif
|
|
# endif
|
|
#endif
|
|
|