From: Paul Eggert Date: Sat, 5 Aug 2017 05:34:45 +0000 (-0700) Subject: Port recent rename changes to Ubuntu 14.04 X-Git-Tag: emacs-26.0.90~517^2~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a24f47f0eeba688f92043ef8733e0f7d9836c18;p=emacs.git Port recent rename changes to Ubuntu 14.04 * src/sysdep.c (renameat_noreplace) [!RENAME_NOREPLACE]: Don’t use syscall. Problem reported by Tino Calancha (Bug#27946#10). --- diff --git a/src/sysdep.c b/src/sysdep.c index 22446b25d16..9eb733221e4 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2691,7 +2691,7 @@ set_file_times (int fd, const char *filename, int renameat_noreplace (int srcfd, char const *src, int dstfd, char const *dst) { -#ifdef SYS_renameat2 +#if defined SYS_renameat2 && defined RENAME_NOREPLACE return syscall (SYS_renameat2, srcfd, src, dstfd, dst, RENAME_NOREPLACE); #else errno = ENOSYS;