aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-12-31 20:28:30 +0200
committerPhilipp Stephani2021-11-13 16:46:31 +0100
commit480241983ea91e31ca4d757fe91df84d1d11d3c9 (patch)
treee9f607ecc8799aa642f15a9c585c1e3d9c0895c4
parentcc4edea872ca653f3e0631ce50e47b5260c6773a (diff)
downloademacs-480241983ea91e31ca4d757fe91df84d1d11d3c9.tar.gz
emacs-480241983ea91e31ca4d757fe91df84d1d11d3c9.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. (cherry picked from commit a8fc08085110de00ebcbd67b5273a755a5cb8ea1)
-rw-r--r--src/callproc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 4aa24636c35..fad81694b0a 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1602,7 +1602,9 @@ emacs_spawn (pid_t *newpid, int std_in, int std_out, int std_err,
1602 1602
1603 vfork_error = pid < 0 ? errno : 0; 1603 vfork_error = pid < 0 ? errno : 0;
1604 1604
1605#if USABLE_POSIX_SPAWN
1605 fork_done: 1606 fork_done:
1607#endif
1606 if (pid < 0) 1608 if (pid < 0)
1607 { 1609 {
1608 eassert (0 < vfork_error); 1610 eassert (0 < vfork_error);