From 84c672b0330b0d834b1634482748adbfb5520da6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 17 Oct 2022 16:18:22 -0400 Subject: util: Stub out confstr() on Android --- src/xspawn.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/xspawn.c') diff --git a/src/xspawn.c b/src/xspawn.c index 93c270a..67e0572 100644 --- a/src/xspawn.c +++ b/src/xspawn.c @@ -260,11 +260,13 @@ char *bfs_spawn_resolve(const char *exe) { const char *path = getenv("PATH"); char *confpath = NULL; +#ifdef _CS_PATH if (!path) { path = confpath = xconfstr(_CS_PATH); - if (!path) { - return NULL; - } + } +#endif + if (!path) { + return NULL; } size_t cap = 0; -- cgit v1.2.3