Skip to content

Commit e24e889

Browse files
authored
Merge pull request torvalds#282 from petrosagg/issue-281
lkl: make linux/virtio_net.h valid in c++ context
2 parents 4b6e5a7 + 53424c5 commit e24e889

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/lkl/include/lkl.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ extern "C" {
77

88
#define _LKL_LIBC_COMPAT_H
99

10+
#ifdef __cplusplus
11+
#define class __lkl__class
12+
#endif
1013
#include <lkl/asm/syscalls.h>
14+
#ifdef __cplusplus
15+
#undef class __lkl__class
16+
#endif
1117

1218
#if __LKL__BITS_PER_LONG == 64
1319
#define lkl_sys_stat lkl_sys_newstat

0 commit comments

Comments
 (0)