X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-fcntl.cpp;fp=src%2Fcommon%2Fcompat%2Fcompat-fcntl.cpp;h=0000000000000000000000000000000000000000;hb=671e39d79a1ad9c3f13c4784a26710a5b1f14237;hp=18b6fa3824cb87f672ed5eda8545149f236c6f09;hpb=83885b70dcfbcee908957d8a8057870c6f6c1273;p=lttng-tools.git diff --git a/src/common/compat/compat-fcntl.cpp b/src/common/compat/compat-fcntl.cpp deleted file mode 100644 index 18b6fa382..000000000 --- a/src/common/compat/compat-fcntl.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2011 David Goulet - * - * SPDX-License-Identifier: LGPL-2.1-only - * - */ - -#define _LGPL_SOURCE -#include -#include - -#include - -#ifdef __linux__ - -int compat_sync_file_range(int fd, off_t offset, off_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__ */