projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cygwin support: only freebsd needs to typedef loff_t
[lttng-tools.git]
/
src
/
common
/
compat
/
fcntl.h
diff --git
a/src/common/compat/fcntl.h
b/src/common/compat/fcntl.h
index 4c89361eb65656e579cc28fbf48b3e697714edc8..040ffaae1fdbeef23e5e97bca68973106c41f211 100644
(file)
--- a/
src/common/compat/fcntl.h
+++ b/
src/common/compat/fcntl.h
@@
-30,10
+30,13
@@
extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
#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;
typedef off64_t loff_t;
+#endif
-#include <errno.h>
/*
* Possible flags under Linux. Simply nullify them and avoid wrapper.
/*
* Possible flags under Linux. Simply nullify them and avoid wrapper.
This page took
0.024365 seconds
and
4
git commands to generate.