cygwin support: only freebsd needs to typedef loff_t
[lttng-tools.git] / src / common / compat / fcntl.h
index b54a543875dad2e94b9b459cb8b634c27be18e40..040ffaae1fdbeef23e5e97bca68973106c41f211 100644 (file)
@@ -28,12 +28,15 @@ extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
 #define lttng_sync_file_range(fd, offset, nbytes, flags) \
        compat_sync_file_range(fd, offset, nbytes, flags)
 
-#elif (defined(__FreeBSD__) || defined(__CYGWIN__)
+#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.024202 seconds and 4 git commands to generate.