diff options
author | Alexander Larsson <alexl@redhat.com> | 2018-02-09 12:33:18 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-09 11:35:06 +0000 |
commit | 084164a20ad2ea5a02ed7e9a915cb3539a8828ba (patch) | |
tree | d66bfef54268a505b53a611e7a03294136c212be | |
parent | b95c949aa6774e1c7284e932aa71e1055ab25186 (diff) | |
download | flatpak-084164a20ad2ea5a02ed7e9a915cb3539a8828ba.tar.gz |
configure: Fix copy_file_range detection
This is a manual copy of
https://github.com/GNOME/libglnx/commit/4577dc826a923d976ad1a98b4ed5ecc36eac6efe
This way we don't have to update the libglnx dependency on the stable
branch.
Closes: #1401
Approved by: alexlarsson
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 023b0c1a..df9683da 100644 --- a/configure.ac +++ b/configure.ac @@ -158,7 +158,21 @@ else fi AC_CHECK_FUNCS(fdwalk) + LIBGLNX_CONFIGURE +# This is copied from a newer libglnx: https://github.com/GNOME/libglnx/commit/4577dc826a923d976ad1a98b4ed5ecc36eac6efe +# We do this manually in the 0.10.x branch instead of bumping libglnx as on master +AC_CHECK_DECLS([copy_file_range], + [], [], [[ +#include <sys/types.h> +#include <unistd.h> +#include <sys/mount.h> +#include <fcntl.h> +#include <sched.h> +#include <linux/loop.h> +#include <linux/random.h> +]]) + AC_CHECK_HEADER([sys/xattr.h], [], [AC_MSG_ERROR([You must have sys/xattr.h from glibc])]) AC_CHECK_HEADER([sys/capability.h], have_caps=yes, [AC_MSG_ERROR([sys/capability.h header not found])]) |