bin: compile lttng-sessiond as C++
[lttng-tools.git] / src / common / runas.h
index 406dfca2219220f86a91d0cae26017ac82f3e9e1..ca084102e4ae8c17d424465c97016fb3c03a3698 100644 (file)
 #include <common/macros.h>
 #include <common/sessiond-comm/sessiond-comm.h>
 
+#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 */
This page took 0.023287 seconds and 4 git commands to generate.