X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Ffcntl.h;h=040ffaae1fdbeef23e5e97bca68973106c41f211;hb=15d3d5d89e2ca0656e653323c053d29e72674d32;hp=b54a543875dad2e94b9b459cb8b634c27be18e40;hpb=c345f883983ae8d187c6e3bb087fba9d33d8d72b;p=lttng-tools.git diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h index b54a54387..040ffaae1 100644 --- a/src/common/compat/fcntl.h +++ b/src/common/compat/fcntl.h @@ -28,12 +28,15 @@ 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) -#elif (defined(__FreeBSD__) || defined(__CYGWIN__) +#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.