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-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=748897db038a7c01ad67b6deec91e86dc1150d72;p=lttng-tools.git cygwin support: only freebsd needs to typedef loff_t commit 15d3d5d89e2ca0656e653323c053d29e72674d32 upstream. Signed-off-by: Mathieu Desnoyers Signed-off-by: Christian Babeux --- 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.