diff --git a/sgminer.c b/sgminer.c index 29f9df0e..60882f2c 100644 --- a/sgminer.c +++ b/sgminer.c @@ -3044,7 +3044,7 @@ static void kill_mining(void) if (thr && PTH(thr) != 0L) pth = &thr->pth; thr_info_cancel(thr); -#ifndef WIN32 +#if !defined WIN32 || defined __MINGW64_VERSION_MAJOR if (pth && *pth) pthread_join(*pth, NULL); #else