VirtualBox

Changeset 91232 in vbox


Ignore:
Timestamp:
Sep 14, 2021 12:12:45 PM (3 years ago)
Author:
vboxsync
Message:

iprt: introduce initial support for Linux kernel 5.15, bugref:10104.

In 5.15, header file linux/stdarg.h become a part of kernel
sources. It is indirectly included by IPRT sources. In this
commit we tend to use linux/stdarg.h instead of stdarg.h which
comes with GCC in order to prevent macros redifinition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/stdarg.h

    r82968 r91232  
    4444#   define __builtin_stdarg_start __builtin_va_start
    4545#  endif
     46# elif defined(RT_OS_LINUX) && defined(IN_RING0)
     47#  include "linux/version.h"
     48#  if RTLNX_VER_MIN(5,15,0)
     49#   include <linux/stdarg.h>
     50#  else
     51#   include <stdarg.h>
     52#  endif
    4653# else
    4754#  include <stdarg.h>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette