summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-12-31 20:28:30 +0200
committerPhilipp Stephani <phst@google.com>2021-11-11 22:00:03 +0100
commita8fc08085110de00ebcbd67b5273a755a5cb8ea1 (patch)
tree7f78b872c6c1a0ebc84c070b78c5075344a9d598 /src/callproc.c
parenta60053f8368e058229721f1bf1567c2b1676b239 (diff)
downloademacs-a8fc08085110de00ebcbd67b5273a755a5cb8ea1.tar.gz
emacs-a8fc08085110de00ebcbd67b5273a755a5cb8ea1.tar.bz2
emacs-a8fc08085110de00ebcbd67b5273a755a5cb8ea1.zip
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.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c2
1 files changed, 2 insertions, 0 deletions
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);