cygwin support: only freebsd needs to typedef loff_t
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 May 2012 15:49:55 +0000 (11:49 -0400)
committerChristian Babeux <christian.babeux@efficios.com>
Fri, 7 Dec 2012 20:17:54 +0000 (15:17 -0500)
commit 15d3d5d89e2ca0656e653323c053d29e72674d32 upstream.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
src/common/compat/fcntl.h

index 4c89361eb65656e579cc28fbf48b3e697714edc8..040ffaae1fdbeef23e5e97bca68973106c41f211 100644 (file)
@@ -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 <errno.h>
+
+typedef long long off64_t;
+#ifdef __FreeBSD__
 typedef off64_t loff_t;
+#endif
 
-#include <errno.h>
 
 /*
  * Possible flags under Linux. Simply nullify them and avoid wrapper.
This page took 0.027117 seconds and 4 git commands to generate.