X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-fcntl.c;h=bc014d6404df4f1a78f71a0783d4b4ab6b47656a;hb=HEAD;hp=95999686a31f8e3b75a99d97ff7a6e935847574f;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/common/compat/compat-fcntl.c b/src/common/compat/compat-fcntl.c deleted file mode 100644 index 95999686a..000000000 --- a/src/common/compat/compat-fcntl.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011 David Goulet - * - * SPDX-License-Identifier: GPL-2.0-only - * - */ - -#define _LGPL_SOURCE -#include -#include -#include - -#ifdef __linux__ - -LTTNG_HIDDEN -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__ */