From a8fc08085110de00ebcbd67b5273a755a5cb8ea1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 31 Dec 2020 20:28:30 +0200 Subject: [PATCH] Fix compilation on MS-Windows * src/callproc.c (emacs_spawn) : Define the label only if USABLE_POSIX_SPAWN is defined, to avoid a compiler warning. --- src/callproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/callproc.c b/src/callproc.c index 208a448135c..c949fff4db9 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1601,7 +1601,9 @@ emacs_spawn (pid_t *newpid, int std_in, int std_out, int std_err, vfork_error = pid < 0 ? errno : 0; +#if USABLE_POSIX_SPAWN fork_done: +#endif if (pid < 0) { eassert (0 < vfork_error); -- 2.39.2