[Buildroot] [PATCH 2/7] lttng-tools: fix build on uClibc due to sync_file_range()
Peter Korsgaard
jacmet at uclibc.org
Sun Feb 5 10:11:09 UTC 2012
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:
Thomas> Add a patch to use fdatasync() instead of sync_file_range() when the
Thomas> latter is not available.
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Thomas> ---
Thomas> ...ls-2.0-pre15-no-sync-file-range-in-uclibc.patch | 87 ++++++++++++++++++++
Thomas> package/lttng-tools/lttng-tools.mk | 2 +
Thomas> 2 files changed, 89 insertions(+), 0 deletions(-)
Thomas> create mode 100644 package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch
Thomas> diff --git a/package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch b/package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch
Thomas> new file mode 100644
Thomas> index 0000000..861686b
Thomas> --- /dev/null
Thomas> +++ b/package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch
Thomas> @@ -0,0 +1,87 @@
Thomas> +Make sync_file_range() usage optional
Thomas> +
Thomas> +Under uClibc, sync_file_range() is not available under all
Thomas> +architectures, so we fall back to fdatasync() in this case.
And as far as I can see, it's also only available if LFS support is
present.
Committed, thanks. Don't forget to send patch upstream.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list