Skip to content

Commit d79e7af

Browse files
committed
Try to fix macOS _get_name()
1 parent 9f6a8ab commit d79e7af

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Modules/_threadmodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,12 +2377,8 @@ _thread__get_name_impl(PyObject *module)
23772377
{
23782378
char name[17];
23792379
size_t size = Py_ARRAY_LENGTH(name) - 1;
2380-
#ifdef __APPLE__
2381-
pthread_getname_np(name, size);
2382-
#else
23832380
pthread_t thread = pthread_self();
23842381
pthread_getname_np(thread, name, size);
2385-
#endif
23862382
name[size] = 0;
23872383
return PyUnicode_DecodeFSDefault(name);
23882384
}

0 commit comments

Comments
 (0)