emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/posix-spawn-no-gnulib 29fd0e0: Fix compilation on MS-Windows


From: Philipp Stephani
Subject: scratch/posix-spawn-no-gnulib 29fd0e0: Fix compilation on MS-Windows
Date: Thu, 11 Nov 2021 14:30:49 -0500 (EST)

branch: scratch/posix-spawn-no-gnulib
commit 29fd0e0704feabf8ea402e7a99e7999f8b146b0b
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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]