diff --git a/l4/pkg/l4re-core/l4sys/include/ARCH-x86/ipc-invoke.h b/l4/pkg/l4re-core/l4sys/include/ARCH-x86/ipc-invoke.h index 6e635697..18ef1f6d 100644 --- a/l4/pkg/l4re-core/l4sys/include/ARCH-x86/ipc-invoke.h +++ b/l4/pkg/l4re-core/l4sys/include/ARCH-x86/ipc-invoke.h @@ -48,7 +48,11 @@ #if 1 #ifdef __PIC__ +#ifndef __cplusplus extern void (*__l4sys_invoke_indirect)(void); +#else +extern "C" void (*__l4sys_invoke_indirect)(void); +#endif #endif # define IPC_SYSENTER "# indirect sys invoke \n\t" \ "call *%[func] \n\t"