[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make bootstrap error
From: |
M. Nomiya |
Subject: |
Re: make bootstrap error |
Date: |
Fri, 15 Sep 2017 07:12:02 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) Emacs/26.0 Mule/6.0 (HANACHIRUSATO) |
Hello,
In the Message;
Subject : Re: make bootstrap error
Message-ID : <address@hidden>
Date & Time: Thu, 14 Sep 2017 07:26:24 -0700
Paul Eggert <address@hidden> has written:
> [1 <text/plain; utf-8 (quoted-printable)>]
> Ken Brown wrote:
> > Paul, any idea why SYS_renameat2 would be undefined on openSUSE 12.3 x86_64?
> Haven't a clue, but the workaround should be easy enough. I installed the
> attached; please give it a try. If some platform other than Cygwin starts
> supporting renameat2 we can put a test into configure.ac and change "defined
> CYGWIN" to "HAVE_RENAME2".
> [2 0001-Port-renameat_noreplace-to-openSUSE-12.3.patch <text/x-patch
> (quoted-printable)>]
> From bc5485edeff0ccb3fbcc7fe6b6f13c666699e959 Mon Sep 17 00:00:00 2001
> From: Paul Eggert <address@hidden>
> Date: Thu, 14 Sep 2017 07:23:13 -0700
> Subject: [PATCH] Port renameat_noreplace to openSUSE 12.3
> Problem reported by M. Nomiya in:
> http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00363.html
> * src/sysdep.c (renameat_noreplace):
> Call renameat2 only if CYGWIN.
> ---
> src/sysdep.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/src/sysdep.c b/src/sysdep.c
> index 318d4eb..1e6e0d0 100644
> --- a/src/sysdep.c
> +++ b/src/sysdep.c
> @@ -2689,7 +2689,7 @@ renameat_noreplace (int srcfd, char const *src, int
> dstfd, char const *dst)
> {
> #if defined SYS_renameat2 && defined RENAME_NOREPLACE
> return syscall (SYS_renameat2, srcfd, src, dstfd, dst, RENAME_NOREPLACE);
> -#elif defined RENAME_NOREPLACE /* Cygwin >= 2.9.0. */
> +#elif defined CYGWIN && defined RENAME_NOREPLACE
> return renameat2 (srcfd, src, dstfd, dst, RENAME_NOREPLACE);
> #elif defined RENAME_EXCL
> return renameatx_np (srcfd, src, dstfd, dst, RENAME_EXCL);
> --
> 2.7.4
I could compile.
Thanks a lot.
Regards,
----
M. Nomiya