Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
libmysqlclient: fix redefinition of pthreads functions
  • Loading branch information
tonytheodore committed Feb 8, 2017
commit bf6a78224b8d6a4958e2221d3ccc97056d87feeb
20 changes: 20 additions & 0 deletions src/libmysqlclient-1-fixes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -450,3 +450,23 @@ index 1111111..2222222 100644
#include "mysys_priv.h"
#include <process.h>
#include <signal.h>

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com>
Date: Wed, 8 Feb 2017 11:51:42 +1100
Subject: [PATCH] only define localtime_r and gmtime_r when pthreads isn't used


diff --git a/include/my_global.h b/include/my_global.h
index 1111111..2222222 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -629,7 +629,7 @@ enum loglevel {
};


-#ifdef _WIN32
+#if defined(_WIN32) && !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
/****************************************************************************
** Replacements for localtime_r and gmtime_r
****************************************************************************/