File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Sources/_TestingInternals Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 17
17
// / include functions here if Swift cannot successfully import and call them
18
18
// / otherwise.
19
19
20
- #if defined(__linux__) || defined(__FreeBSD__)
21
20
#undef _DEFAULT_SOURCE
22
21
#define _DEFAULT_SOURCE 1
23
22
#undef _GNU_SOURCE
24
23
#define _GNU_SOURCE 1
25
- #endif
26
24
27
25
#include " Stubs.h"
28
26
@@ -32,7 +30,7 @@ int swt_pthread_setname_np(pthread_t thread, const char *name) {
32
30
}
33
31
#endif
34
32
35
- #if defined(__linux__) || defined(__FreeBSD__ )
33
+ #if defined(__GLIBC__ )
36
34
int swt_posix_spawn_file_actions_addclosefrom_np (posix_spawn_file_actions_t *fileActions, int from) {
37
35
int result = 0 ;
38
36
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ static char *_Nullable *_Null_unspecified swt_environ(void) {
118
118
SWT_EXTERN int swt_pthread_setname_np (pthread_t thread , const char * name );
119
119
#endif
120
120
121
- #if defined(__linux__ ) || defined( __FreeBSD__ )
121
+ #if defined(__GLIBC__ )
122
122
/// Close file descriptors above a given value when spawing a new process.
123
123
///
124
124
/// This symbol is provided because the underlying function was added to glibc
You can’t perform that action at this time.
0 commit comments