[lttng-dev] [PATCH lttng-tools 02/24] Fix : Include sys/stat.h where needed

Charles Briere c.briere at samsung.com
Mon Oct 27 16:49:28 EDT 2014


From: Charles Briere <c.briere at samsung.com>

Some definitions from sys/stat.h are used but not included

Signed-off-by: Charles Briere <c.briere at samsung.com>
---
 src/bin/lttng-sessiond/save.c         | 1 +
 src/bin/lttng-sessiond/ust-consumer.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c
index 908e5f8..6135dae 100644
--- a/src/bin/lttng-sessiond/save.c
+++ b/src/bin/lttng-sessiond/save.c
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <urcu/uatomic.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 #include <common/defaults.h>
 #include <common/error.h>
diff --git a/src/bin/lttng-sessiond/ust-consumer.c b/src/bin/lttng-sessiond/ust-consumer.c
index 4b52d59..9e9d63f 100644
--- a/src/bin/lttng-sessiond/ust-consumer.c
+++ b/src/bin/lttng-sessiond/ust-consumer.c
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/stat.h>
 #include <unistd.h>
 #include <inttypes.h>
 
-- 
2.1.2



More information about the lttng-dev mailing list