From fe2da7be1ca71b9989f4f4e8294d1fdbe1719e82 Mon Sep 17 00:00:00 2001 From: Frantisek Kluknavsky Date: Tue, 4 Feb 2014 11:42:02 +0100 Subject: [PATCH] changed wxt terminal to monothreaded - avoid crash when unlocking a free mutex --- gnuplot-4.6.4-singlethread.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gnuplot-4.6.4-singlethread.patch diff --git a/gnuplot-4.6.4-singlethread.patch b/gnuplot-4.6.4-singlethread.patch new file mode 100644 index 0000000..ea88b1d --- /dev/null +++ b/gnuplot-4.6.4-singlethread.patch @@ -0,0 +1,15 @@ +diff -up wrk/src/wxterminal/wxt_gui.h.wrk wrk/src/wxterminal/wxt_gui.h +--- wrk/src/wxterminal/wxt_gui.h.wrk 2014-02-04 10:48:36.086237421 +0100 ++++ wrk/src/wxterminal/wxt_gui.h 2014-02-04 10:51:22.246931141 +0100 +@@ -154,8 +154,9 @@ extern "C" { + /* depending on the platform, and mostly because of the Windows terminal which + * already has its event loop, we may or may not be multithreaded */ + #if defined(__WXGTK__) +-# define WXT_MULTITHREADED +-#elif defined(__WXMSW__) || defined(__WXMAC__) ++//avoid a crash when unlocking a not-locked mutex, do not use threads ++//# define WXT_MULTITHREADED ++//#elif defined(__WXMSW__) || defined(__WXMAC__) + # define WXT_MONOTHREADED + #else + # error "wxt does not know if this platform has to be mono- or multi-threaded"