projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backport: fd-tracker: log tracker capacity on creation
[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..c6c6b4e994962d84c353eaad21bb2013dfca9b4d 100644
(file)
--- a/
src/common/compat/compat-fcntl.c
+++ b/
src/common/compat/compat-fcntl.c
@@
-15,15
+15,20
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _
GNU
_SOURCE
+#define _
LGPL
_SOURCE
#include <common/compat/fcntl.h>
#include <common/compat/fcntl.h>
+#include <unistd.h>
#ifdef __linux__
int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
unsigned int flags)
{
#ifdef __linux__
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);
return sync_file_range(fd, offset, nbytes, flags);
+#else
+ return fdatasync(fd);
+#endif
}
#endif /* __linux__ */
}
#endif /* __linux__ */
This page took
0.024664 seconds
and
5
git commands to generate.