aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-12-31 20:28:30 +0200
committerPhilipp Stephani2021-11-11 20:30:25 +0100
commit29fd0e0704feabf8ea402e7a99e7999f8b146b0b (patch)
treedd5bd64f4e743218a2635f8f09b3348824a36ef5
parent46bdcadef62fc151abd806a191b0772e2c29c0ee (diff)
downloademacs-scratch/posix-spawn-no-gnulib.tar.gz
emacs-scratch/posix-spawn-no-gnulib.zip
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 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);