+2020-11-17 Bruno Haible <bruno@clisp.org>
+
+ Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
+ * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
+ is always declared.
+ * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
+ declared.
+
2020-11-17 Bruno Haible <bruno@clisp.org>
Fix link errors on AIX.
# endif
_GL_CXXALIASWARN (copy_file_range);
#elif defined GNULIB_POSIXCHECK
-/* Assume copy_file_range is always declared. */
+# if HAVE_RAW_DECL_COPY_FILE_RANGE
_GL_WARN_ON_USE (copy_file_range,
"copy_file_range is unportable - "
"use gnulib module copy_file_range for portability");
+# endif
#endif
-# unistd_h.m4 serial 81
+# unistd_h.m4 serial 82
dnl Copyright (C) 2006-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
# include <io.h>
# endif
#endif
- ]], [access chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir
+ ]], [access chdir chown copy_file_range dup dup2 dup3 environ euidaccess
+ faccessat fchdir
fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize
getentropy getgroups gethostname getlogin getlogin_r getpagesize getpass
getusershell setusershell endusershell