Skip to content
Snippets Groups Projects
Unverified Commit 4577dc82 authored by Will Thompson's avatar Will Thompson
Browse files

Add missing configure check for copy_file_range

Without this, including glnx-missing-syscall.h raises this warning:

    ../ext/libglnx/glnx-missing-syscall.h:121:6: warning: "HAVE_DECL_COPY_FILE_RANGE" is not defined [-Wundef]
     #if !HAVE_DECL_COPY_FILE_RANGE
          ^~~~~~~~~~~~~~~~~~~~~~~~~
parent d15a3790
No related branches found
No related tags found
No related merge requests found
AC_DEFUN([LIBGLNX_CONFIGURE],
[
AC_CHECK_DECLS([renameat2, memfd_create],
AC_CHECK_DECLS([
renameat2,
memfd_create,
copy_file_range],
[], [], [[
#include <sys/types.h>
#include <unistd.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment