diff --git a/src/calibre/utils/speedup.c b/src/calibre/utils/speedup.c index 70a691e369..850c1f11c6 100644 --- a/src/calibre/utils/speedup.c +++ b/src/calibre/utils/speedup.c @@ -493,7 +493,6 @@ speedup_iso_8601(PyObject *self, PyObject *args) { #ifndef _MSC_VER #include -#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*