Skip to content

Commit 190b3dc

Browse files
marcpruxjakepetroules
authored andcommitted
Return ENOSYS for posix_spawn_file_actions_addchdir on older Android versions that do not have it
1 parent 9087bdf commit 190b3dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Basic/Subprocess.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ static int posix_spawn_file_actions_addchdir_polyfill(posix_spawn_file_actions_t
102102
// - FreeBSD 13.1 (May 2022)
103103
// - Android 14 (October 2023)
104104
return posix_spawn_file_actions_addchdir_np((posix_spawn_file_actions_t *)file_actions, path);
105+
#elif defined(__ANDROID__)
106+
// - Android < 14
107+
return ENOSYS;
105108
#else
106109
// Standardized posix_spawn_file_actions_addchdir version (POSIX.1-2024, June 2024) available in:
107110
// - Solaris 11.4 (August 2018)

0 commit comments

Comments
 (0)