Skip to content

Commit ae61520

Browse files
Stylistic changes to _CFPosixSpawnFileActionsChdir implementation (#5223)
This function is now duplicated or soon to be duplicated across approximately 4 different places throughout the Swift project. Format it stylistically to standardize it everywhere for easier comparison and copy-pasting.
1 parent e17c61c commit ae61520

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/CoreFoundation/CFPlatform.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2321,11 +2321,13 @@ CF_EXPORT int _CFPosixSpawnFileActionsChdir(_CFPosixSpawnFileActionsRef file_act
23212321
// Glibc versions prior to 2.29 don't support posix_spawn_file_actions_addchdir_np, impacting:
23222322
// - Amazon Linux 2 (EoL mid-2025)
23232323
return ENOSYS;
2324-
#elif defined(__OpenBSD__) || defined(__QNX__) || (defined(__ANDROID__) && __ANDROID_API__ < 34)
2324+
#elif defined(__ANDROID__) && __ANDROID_API__ < 34
2325+
// Android versions prior to 14 (API level 34) don't support posix_spawn_file_actions_addchdir_np
2326+
return ENOSYS;
2327+
#elif defined(__OpenBSD__) || defined(__QNX__)
23252328
// Currently missing as of:
23262329
// - OpenBSD 7.5 (April 2024)
23272330
// - QNX 8 (December 2023)
2328-
// - Android 13
23292331
return ENOSYS;
23302332
#elif defined(__GLIBC__) || TARGET_OS_DARWIN || defined(__FreeBSD__) || defined(__ANDROID__) || defined(__musl__)
23312333
// Pre-standard posix_spawn_file_actions_addchdir_np version available in:

0 commit comments

Comments
 (0)