This commit is contained in:
Kovid Goyal 2019-01-27 21:16:53 +05:30
parent 51193d113b
commit c81c6c13b6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -493,7 +493,6 @@ speedup_iso_8601(PyObject *self, PyObject *args) {
#ifndef _MSC_VER
#include <pthread.h>
#endif
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#define FREEBSD_SET_NAME
#endif
@ -507,6 +506,7 @@ void pthread_set_name_np(pthread_t tid, const char *name);
// Need _GNU_SOURCE for pthread_setname_np on linux and that causes other issues on systems with old glibc
extern int pthread_setname_np(pthread_t, const char *name);
#endif
#endif
static PyObject*