Mingw also have posix threads library so to resolve conflict we need guard
using posix threads for Windows.
>From 3c6b5d711db3ef52422d95f77ff69a46aa9f814e Mon Sep 17 00:00:00 2001
From: Alexpux <[email protected]>
Date: Wed, 19 Nov 2014 06:18:02 +0300
Subject: [PATCH] Always use Win32 threads for Mingw.
---
src/common/common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/common.h b/src/common/common.h
index 39fc66c..515ce3e 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -65,7 +65,7 @@
#include <unistd.h>
#endif
-#if defined(_POSIX_THREADS) && _POSIX_THREADS >= 200112L
+#if defined(_POSIX_THREADS) && _POSIX_THREADS >= 200112L &&
!defined(WIN_NT)
// above check is generally true. However, we use pthreads on some
platforms
// where _POSIX_THREADS is defined to "1" or not even defined at all!
#define USE_POSIX_THREADS
--
2.2.0
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel