bin: compile lttng-sessiond as C++
[lttng-tools.git] / src / common / daemonize.h
index 2c88f06b7ddaa1dd1ac9224997e220e0dda8f3cb..8590779c27c3b62d1f2e5e3dced53a57914b4666 100644 (file)
 #include <unistd.h>
 #include <common/macros.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Daemonize this process by forking and making the parent wait for the child
  * to signal it indicating readiness. Once received, the parent successfully
@@ -25,4 +29,8 @@
 int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
                int close_fds);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LTTNG_DAEMONIZE_H */
This page took 0.024877 seconds and 4 git commands to generate.