From mboxrd@z Thu Jan 1 00:00:00 1970 From: c.briere@samsung.com (Charles Briere) Date: Mon, 27 Oct 2014 20:49:30 +0000 Subject: [lttng-dev] [PATCH lttng-tools 22/24] Android : Missing defintion in fcntl.h In-Reply-To: <1414442926-14381-1-git-send-email-c.briere@samsung.com> References: <1414442926-14381-1-git-send-email-c.briere@samsung.com> Message-ID: <1414442926-14381-23-git-send-email-c.briere@samsung.com> From: Charles Briere Add includes for the missing declarations Signed-off-by: Charles Briere --- 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 +# endif + +# ifndef SYNC_FILE_RANGE_WRITE +# include +#endif + #endif /* __linux__ */ #if (defined(__FreeBSD__) || defined(__CYGWIN__)) -- 2.1.2