]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid compiler warning in copy-file-range.c on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Fri, 7 Jun 2019 08:15:51 +0000 (11:15 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 7 Jun 2019 08:15:51 +0000 (11:15 +0300)
* nt/mingw-cfg.site (gl_cv_func_copy_file_range): Set to "yes",
to avoid compiling lib/copy-file-range.c on MS-Windows.

nt/mingw-cfg.site

index 498cd6798ebb33b31397648027ad4cfc308d4ed0..e15d14cc392327ab3924e444c493d4c09c3afa4d 100644 (file)
@@ -136,3 +136,8 @@ ac_cv_func_getrlimit=yes
 ac_cv_func_setrlimit=yes
 # GCC warnings that produce too much noise
 gl_cv_warn_c__Wredundant_decls=no
+# We don't want to compile lib/copy-file-range.c because it isn't used
+# on Windows, and because compiling it triggers a warning about a
+# missing prototype, since lib/unistd.h, where Gnulib has its
+# prototype, isn't built on Windows.
+gl_cv_func_copy_file_range=yes