aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-12-31 20:28:30 +0200
committerPhilipp Stephani2021-11-11 22:00:03 +0100
commita8fc08085110de00ebcbd67b5273a755a5cb8ea1 (patch)
tree7f78b872c6c1a0ebc84c070b78c5075344a9d598
parenta60053f8368e058229721f1bf1567c2b1676b239 (diff)
downloademacs-a8fc08085110de00ebcbd67b5273a755a5cb8ea1.tar.gz
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.
-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,
1601 1601
1602 vfork_error = pid < 0 ? errno : 0; 1602 vfork_error = pid < 0 ? errno : 0;
1603 1603
1604#if USABLE_POSIX_SPAWN
1604 fork_done: 1605 fork_done:
1606#endif
1605 if (pid < 0) 1607 if (pid < 0)
1606 { 1608 {
1607 eassert (0 < vfork_error); 1609 eassert (0 < vfork_error);