From 1526bda7e00a2bf7abbe2f189b7949b3fc8e07ad Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 8 Aug 2011 20:18:19 -0400 Subject: [PATCH] Move LTTNG_RUNDIR declaration to lttng/lttng-sessiond-comm.h Signed-off-by: Mathieu Desnoyers --- include/lttng-kconsumerd.h | 3 ++- include/lttng-share.h | 2 -- include/lttng/lttng-sessiond-comm.h | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/lttng-kconsumerd.h b/include/lttng-kconsumerd.h index f6d1a0cc8..8dd57cff1 100644 --- a/include/lttng-kconsumerd.h +++ b/include/lttng-kconsumerd.h @@ -20,10 +20,11 @@ #ifndef _LTTNG_KCONSUMERD_H #define _LTTNG_KCONSUMERD_H +#include #include "lttng-share.h" /* Kernel consumer path */ -#define KCONSUMERD_PATH LTTNG_RUNDIR "/kconsumerd" +#define KCONSUMERD_PATH LTTNG_RUNDIR "/kconsumerd" #define KCONSUMERD_CMD_SOCK_PATH KCONSUMERD_PATH "/command" #define KCONSUMERD_ERR_SOCK_PATH KCONSUMERD_PATH "/error" diff --git a/include/lttng-share.h b/include/lttng-share.h index 7f82cf6a5..9d3a259a6 100644 --- a/include/lttng-share.h +++ b/include/lttng-share.h @@ -27,8 +27,6 @@ typedef uint64_t u64; typedef __s64 s64; -#define LTTNG_RUNDIR "/var/run/lttng" - /* Default channel attributes */ #define DEFAULT_CHANNEL_NAME "channel0" #define DEFAULT_CHANNEL_OVERWRITE 0 /* usec */ diff --git a/include/lttng/lttng-sessiond-comm.h b/include/lttng/lttng-sessiond-comm.h index feff98c70..67a305d1f 100644 --- a/include/lttng/lttng-sessiond-comm.h +++ b/include/lttng/lttng-sessiond-comm.h @@ -29,6 +29,8 @@ #include #include +#define LTTNG_RUNDIR "/var/run/lttng" + /* Default unix socket path */ #define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK LTTNG_RUNDIR "/client-ltt-sessiond" #define DEFAULT_GLOBAL_APPS_UNIX_SOCK LTTNG_RUNDIR "/apps-ltt-sessiond" -- 2.34.1