From: Charles Briere <[email protected]> Add includes for the missing declarations
Signed-off-by: Charles Briere <[email protected]> --- 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 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
