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)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 May 2012 15:49:55 +0000 (11:49 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@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.024703 seconds and 4 git commands to generate.