[lttng-dev] [PATCH lttng-tools 22/24] Android : Missing defintion in fcntl.h
Charles Briere
c.briere at samsung.com
Mon Oct 27 16:49:30 EDT 2014
From: Charles Briere <c.briere at samsung.com>
Add includes for the missing declarations
Signed-off-by: Charles Briere <c.briere at samsung.com>
---
src/common/compat/fcntl.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h
index 04fe03a..1325a3f 100644
--- a/src/common/compat/fcntl.h
+++ b/src/common/compat/fcntl.h
@@ -36,6 +36,14 @@ extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
#define lttng_sync_file_range(fd, offset, nbytes, flags) \
compat_sync_file_range(fd, offset, nbytes, flags)
+# ifndef POSIX_FADV_DONTNEED
+# include <linux/fadvise.h>
+# endif
+
+# ifndef SYNC_FILE_RANGE_WRITE
+# include <linux/fs.h>
+#endif
+
#endif /* __linux__ */
#if (defined(__FreeBSD__) || defined(__CYGWIN__))
--
2.1.2
More information about the lttng-dev
mailing list