summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-12-31 20:28:30 +0200
committerEli Zaretskii <eliz@gnu.org>2020-12-31 20:28:30 +0200
commit680052b3bcd380f862f6d4cbb6985763c55bb477 (patch)
tree96e520d43032e51d1a62c621b25a6c6dc95dd8b7
parentc28ccdff224ea5c1c7d43222fbc7df2b3e6336b5 (diff)
downloademacs-scratch/posix-spawn-no-gnulib.tar.gz
Fix compilation on MS-Windowsscratch/posix-spawn-no-gnulib
* src/callproc.c (emacs_spawn) <fork_done>: Define the label only if USABLE_POSIX_SPAWN is defined, to avoid a compiler warning.
-rw-r--r--src/callproc.c2
1 files changed, 2 insertions, 0 deletions
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 ();