Skip to content

Commit

Permalink
Merge pull request torvalds#282 from petrosagg/issue-281
Browse files Browse the repository at this point in the history
lkl: make linux/virtio_net.h valid in c++ context
  • Loading branch information
tavip authored Dec 22, 2016
2 parents 4b6e5a7 + 53424c5 commit e24e889
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/lkl/include/lkl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ extern "C" {

#define _LKL_LIBC_COMPAT_H

#ifdef __cplusplus
#define class __lkl__class
#endif
#include <lkl/asm/syscalls.h>
#ifdef __cplusplus
#undef class __lkl__class
#endif

#if __LKL__BITS_PER_LONG == 64
#define lkl_sys_stat lkl_sys_newstat
Expand Down

0 comments on commit e24e889

Please sign in to comment.