From 15d3d5d89e2ca0656e653323c053d29e72674d32 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 24 May 2012 11:49:55 -0400 Subject: [PATCH] cygwin support: only freebsd needs to typedef loff_t Signed-off-by: Mathieu Desnoyers --- src/common/compat/fcntl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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. -- 2.34.1