#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;
-#include <sys/errno.h>
+#include <errno.h>
/*
* Possible flags under Linux. Simply nullify them and avoid wrapper.
#else
#error "Please add support for your OS."
-#endif /* __linux__ , __FreeBSD__ */
+#endif /* __linux__ , __FreeBSD__, __CYGWIN__ */
#endif /* _COMPAT_FCNTL_H */