From: Eli Zaretskii Date: Thu, 31 Dec 2020 18:28:30 +0000 (+0200) Subject: Fix compilation on MS-Windows X-Git-Tag: emacs-28.0.90~78 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=480241983ea91e31ca4d757fe91df84d1d11d3c9;p=emacs.git 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. (cherry picked from commit a8fc08085110de00ebcbd67b5273a755a5cb8ea1) --- diff --git a/src/callproc.c b/src/callproc.c index 4aa24636c35..fad81694b0a 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1602,7 +1602,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);