X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Frunas.h;fp=src%2Fcommon%2Frunas.h;h=ca084102e4ae8c17d424465c97016fb3c03a3698;hp=406dfca2219220f86a91d0cae26017ac82f3e9e1;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hpb=3a5f70173aa04d11ccb22694d5d31a702cad33ab diff --git a/src/common/runas.h b/src/common/runas.h index 406dfca22..ca084102e 100644 --- a/src/common/runas.h +++ b/src/common/runas.h @@ -16,6 +16,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* * The run-as process is launched by forking without an exec*() call. This means * that any resource allocated before the run-as worker is launched should be @@ -61,4 +65,8 @@ int run_as_create_worker(const char *procname, post_fork_cleanup_cb clean_up_func, void *clean_up_user_data); void run_as_destroy_worker(void); +#ifdef __cplusplus +} +#endif + #endif /* _RUNAS_H */