Make sync_file_range() usage optional
[lttng-tools.git] / src / common / compat / compat-fcntl.c
index 5a1c757b864ed1de210f19b60744714bce01dcd6..7ff63a3a109146e81cb696691f780b6d1117c013 100644 (file)
 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.023704 seconds and 4 git commands to generate.