From ab3bdddbe4d559e4bd445679a6a7e86b44a3ccc2 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 14 Jul 2017 14:21:47 +0100 Subject: ash: fix POSIX build --- shell/ash.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index bdbcd6987..5debd82f2 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -4461,11 +4461,11 @@ dowait(int block, struct job *job) jobno(jp), pid, ps->ps_status, status)); ps->ps_status = status; thisjob = jp; - if (ENABLE_PLATFORM_MINGW32) { - ps->ps_pid = -1; - CloseHandle(ps->ps_proc); - ps->ps_proc = NULL; - } +#if ENABLE_PLATFORM_MINGW32 + ps->ps_pid = -1; + CloseHandle(ps->ps_proc); + ps->ps_proc = NULL; +#endif } if (ps->ps_status == -1) jobstate = JOBRUNNING; -- cgit v1.2.3-55-g6feb