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 b54a543875dad2e94b9b459cb8b634c27be18e40..040ffaae1fdbeef23e5e97bca68973106c41f211 100644
(file)
--- a/
src/common/compat/fcntl.h
+++ b/
src/common/compat/fcntl.h
@@
-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)
#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;
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.028121 seconds
and
4
git commands to generate.