From 89e1fef97cfa4a9b6784d091c992a4b1e05b9a92 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 9 Sep 2016 15:28:31 -0700 Subject: cp: use FICLONE instead of BTRFS_IOC_CLONE This doesn't affect the generated code on my system; it's merely a cleaner way to use the recently-introduced Linux-specific API. * m4/jm-macros.m4 (gl_CHECK_ALL_HEADERS): Check for linux/fs.h. * src/copy.c: Include if available. (FICLONE) [__linux__]: Define if not already defined. (clone_file): Use FICLONE instead of the older BTRFS_IOC_CLONE, as this ioctl is no longer btrfs-specific. --- m4/jm-macros.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 435c6ff41..a191af1de 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -1,4 +1,4 @@ -#serial 110 -*- autoconf -*- +#serial 111 -*- autoconf -*- dnl Misc type-related macros for coreutils. @@ -207,6 +207,7 @@ AC_DEFUN([gl_CHECK_ALL_HEADERS], AC_CHECK_HEADERS_ONCE([ hurd.h linux/falloc.h + linux/fs.h paths.h priv.h stropts.h -- cgit v1.2.3-54-g00ecf