From: Daniel Dinca Date: Wed, 10 Mar 2021 10:21:30 +0000 (+0200) Subject: include/syscall.h: add cpp macros X-Git-Tag: RELEASE-0.7.0^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=243a75ce377f91d607e5ece9b1f6791b13005c25;p=unikraft%2Flibs%2Fnewlib.git include/syscall.h: add cpp macros Make the syscall header compatible with C++ compiler. Signed-off-by: Daniel Dinca Reviewed-by: Gabriel Mocanu Approved-by: Alexander Jung Tested-by: Unikraft CI GitHub-Pull-Request: #3 --- diff --git a/include/sys/syscall.h b/include/sys/syscall.h index 3d3b17e..851e4b2 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -35,8 +35,16 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + long syscall(long num, ...); +#ifdef __cplusplus +} +#endif + #if CONFIG_LIBSYSCALL_SHIM /* Provide SYS_syscallname and __NR_syscallname variants */ #include