From: Mathieu Desnoyers Date: Thu, 24 May 2012 15:49:55 +0000 (-0400) Subject: cygwin support: only freebsd needs to typedef loff_t X-Git-Tag: v2.1.0-rc1~135 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=15d3d5d89e2ca0656e653323c053d29e72674d32;p=lttng-tools.git cygwin support: only freebsd needs to typedef loff_t Signed-off-by: Mathieu Desnoyers --- 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.