From 680052b3bcd380f862f6d4cbb6985763c55bb477 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 31 Dec 2020 20:28:30 +0200 Subject: 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 cb270d47982..1b11f2d01b3 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1563,7 +1563,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 /* Stop blocking in the parent. */ unblock_child_signal (&oldset); unblock_input (); -- cgit v1.2.1