diff options
| author | Eli Zaretskii | 2020-12-31 20:28:30 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2021-11-11 20:30:25 +0100 |
| commit | 29fd0e0704feabf8ea402e7a99e7999f8b146b0b (patch) | |
| tree | dd5bd64f4e743218a2635f8f09b3348824a36ef5 | |
| parent | 46bdcadef62fc151abd806a191b0772e2c29c0ee (diff) | |
| download | emacs-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.c | 2 |
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); |