From 0708c8a68dfaf39ec9c48e477ff44a5c6c7d497c Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 4 Feb 2023 08:16:29 +0000 Subject: Fix POSIX build A misplaced #endif in ash and the wrong sense of a test in parse_config.c broke the POSIX build. --- libbb/parse_config.c | 2 +- shell/ash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libbb/parse_config.c b/libbb/parse_config.c index 800a2935e..bcd667c7c 100644 --- a/libbb/parse_config.c +++ b/libbb/parse_config.c @@ -113,7 +113,7 @@ static int get_line_with_continuation(parser_t *parser) line = parser->line; for (;;) { parser->lineno++; -#if ENABLE_PLATFORM_MINGW32 +#if !ENABLE_PLATFORM_MINGW32 if (line[len - 1] == '\n') len--; #else diff --git a/shell/ash.c b/shell/ash.c index 7b9b9f1e1..a24ed0ac8 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -7372,8 +7372,8 @@ expbackq(union node *cmd, int flag IF_BASH_PROCESS_SUBST(, int ctl)) if (dest > ((char *)stackblock() + startloc) && dest[-1] == '\r') { STUNPUTC(dest); } - } #endif + } expdest = dest; if (!(flag & EXP_QUOTED)) -- cgit v1.2.3-55-g6feb