wt: fix posix build

This commit is contained in:
Tony Theodore 2018-08-15 17:01:29 +10:00
parent 3292d6a60d
commit f0a29921fe
1 changed files with 21 additions and 1 deletions

View File

@ -5,7 +5,7 @@ Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Boris Nagaev <bnagaev@gmail.com>
Date: Sat, 1 Apr 2017 15:17:43 +0200
Subject: [PATCH 1/1] Wt fixes
Subject: [PATCH 1/2] Wt fixes
diff --git a/cmake/WtFindBoost-vintage.txt b/cmake/WtFindBoost-vintage.txt
@ -82,3 +82,23 @@ index 1111111..2222222 100644
ELSEIF(APPLE)
FIND_LIBRARY(SSL_LIB
NAMES
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com>
Date: Wed, 15 Aug 2018 13:28:31 +1000
Subject: [PATCH 2/2] fix w32 build posix threads enabled
diff --git a/src/http/Reply.C b/src/http/Reply.C
index 1111111..2222222 100644
--- a/src/http/Reply.C
+++ b/src/http/Reply.C
@@ -23,7 +23,7 @@
#include <string>
#include <boost/lexical_cast.hpp>
-#ifdef WT_WIN32
+#if defined(WT_WIN32) && !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
// gmtime_r can be defined by mingw
#ifndef gmtime_r
static struct tm* gmtime_r(const time_t* t, struct tm* r)