#include <unistd.h>
#include <common/compat/paths.h>
#include <fcntl.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <stdlib.h>
#include <urcu/system.h>
-#include <src/common/daemonize.h>
-#include <src/common/error.h>
+#include <common/daemonize.h>
+#include <common/error.h>
LTTNG_HIDDEN
int lttng_daemonize(pid_t *child_ppid, int *completion_flag,