From 10e14d5ebdfdfe3acd1cd60692d9cffd07de04e2 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 11 Apr 2020 10:40:15 +0100 Subject: Fix POSIX build --- miscutils/time.c | 2 +- shell/ash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/miscutils/time.c b/miscutils/time.c index eace390e6..dcc3a5b4c 100644 --- a/miscutils/time.c +++ b/miscutils/time.c @@ -464,7 +464,7 @@ int time_main(int argc UNUSED_PARAM, char **argv) int opt; int ex; enum { -#if ENABLE_PLATFORM_MINGW32 +#if !ENABLE_PLATFORM_MINGW32 OPT_v = (1 << 0), OPT_p = (1 << 1), OPT_a = (1 << 2), diff --git a/shell/ash.c b/shell/ash.c index 6a03ef6b4..ca8acd705 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -14242,7 +14242,7 @@ find_command(char *name, struct cmdentry *entry, int act, const char *path) #if ENABLE_PLATFORM_MINGW32 if (strchr(name, '/') || strchr(name, '\\') || has_dos_drive_prefix(name)) { #else - if (strchr(name, '/' != NULL) { + if (strchr(name, '/') != NULL) { #endif entry->u.index = -1; if (act & DO_ABS) { -- cgit v1.2.3-55-g6feb