From 32b13ccb46eb2607c5fd40052318fcdbd8d32dca Mon Sep 17 00:00:00 2001 From: tonobitc Date: Tue, 28 Jan 2014 16:04:19 -0800 Subject: [PATCH] fix for mingw-w64 --- sgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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