From 2724dfbd17552f892a0d8b39b96cbe9e49d66fdb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 6 Nov 2022 10:12:21 -0500 Subject: xspawn: Use _PATH_DEFPATH if _CS_PATH is not defined And set errno correctly if neither one is. Fixes tests/posix/exec_nopath on Android. --- src/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 2e89af6..ac08e4d 100644 --- a/src/util.h +++ b/src/util.h @@ -58,6 +58,10 @@ # define BFS_HAS_MNTENT BFS_HAS_INCLUDE(, __GLIBC__) #endif +#ifndef BFS_HAS_PATHS +# define BFS_HAS_PATHS BFS_HAS_INCLUDE(, true) +#endif + #ifndef BFS_HAS_SYS_ACL # define BFS_HAS_SYS_ACL BFS_HAS_INCLUDE(, true) #endif -- cgit v1.2.3