[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a8fc080 2/2: Fix compilation on MS-Windows
From: |
Philipp Stephani |
Subject: |
master a8fc080 2/2: Fix compilation on MS-Windows |
Date: |
Thu, 11 Nov 2021 16:04:11 -0500 (EST) |
branch: master
commit a8fc08085110de00ebcbd67b5273a755a5cb8ea1
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Philipp Stephani <phst@google.com>
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.
---
src/callproc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/callproc.c b/src/callproc.c
index 208a448..c949fff 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);