X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-fcntl.c;h=7ff63a3a109146e81cb696691f780b6d1117c013;hp=5a1c757b864ed1de210f19b60744714bce01dcd6;hb=281047b8a004f2c2d9aea14f7e58166d0cd93775;hpb=e5f5db7fe1ce6cf8e0ac6b2be2b4c85c2ba68375 diff --git a/src/common/compat/compat-fcntl.c b/src/common/compat/compat-fcntl.c index 5a1c757b8..7ff63a3a1 100644 --- 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__ */