Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#define lttng_sync_file_range(fd, offset, nbytes, flags) \
compat_sync_file_range(fd, offset, nbytes, flags)
#define lttng_sync_file_range(fd, offset, nbytes, flags) \
compat_sync_file_range(fd, offset, nbytes, flags)
-#elif defined(__FreeBSD__)
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__)
typedef long int off64_t;
typedef off64_t loff_t;
typedef long int off64_t;
typedef off64_t loff_t;
/*
* Possible flags under Linux. Simply nullify them and avoid wrapper.
/*
* Possible flags under Linux. Simply nullify them and avoid wrapper.
#else
#error "Please add support for your OS."
#else
#error "Please add support for your OS."
-#endif /* __linux__ , __FreeBSD__ */
+#endif /* __linux__ , __FreeBSD__, __CYGWIN__ */
#endif /* _COMPAT_FCNTL_H */
#endif /* _COMPAT_FCNTL_H */