1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 23:31:55 -08:00

Fix compilation on MS-Windows

* src/callproc.c (emacs_spawn) <fork_done>: Define the label only
if USABLE_POSIX_SPAWN is defined, to avoid a compiler warning.

(cherry picked from commit a8fc080851)
This commit is contained in:
Eli Zaretskii 2020-12-31 20:28:30 +02:00 committed by Philipp Stephani
parent cc4edea872
commit 480241983e

View file

@ -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);