X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Ffcntl.h;fp=src%2Fcommon%2Fcompat%2Ffcntl.h;h=040ffaae1fdbeef23e5e97bca68973106c41f211;hb=15d3d5d89e2ca0656e653323c053d29e72674d32;hp=4c89361eb65656e579cc28fbf48b3e697714edc8;hpb=b1c900e9d222629937cb1a42e769318e88f28664;p=lttng-tools.git diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h index 4c89361eb..040ffaae1 100644 --- a/src/common/compat/fcntl.h +++ b/src/common/compat/fcntl.h @@ -30,10 +30,13 @@ extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes, #elif (defined(__FreeBSD__) || defined(__CYGWIN__)) -typedef long int off64_t; +#include + +typedef long long off64_t; +#ifdef __FreeBSD__ typedef off64_t loff_t; +#endif -#include /* * Possible flags under Linux. Simply nullify them and avoid wrapper.