projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sync_file_range() usage optional
[deliverable/lttng-tools.git]
/
src
/
common
/
compat
/
compat-fcntl.c
diff --git
a/src/common/compat/compat-fcntl.c
b/src/common/compat/compat-fcntl.c
index 5a1c757b864ed1de210f19b60744714bce01dcd6..7ff63a3a109146e81cb696691f780b6d1117c013 100644
(file)
--- a/
src/common/compat/compat-fcntl.c
+++ b/
src/common/compat/compat-fcntl.c
@@
-23,7
+23,11
@@
int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
unsigned int flags)
{
+#ifdef HAVE_SYNC_FILE_RANGE
return sync_file_range(fd, offset, nbytes, flags);
+#else
+ return fdatasync(fd);
+#endif
}
#endif /* __linux__ */
This page took
0.030286 seconds
and
5
git commands to generate.