pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

boinc-git: Really add a missing patch



Module Name:	pkgsrc-wip
Committed By:	Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By:	f8l
Date:		Thu Sep 15 18:46:17 2016 +0200
Changeset:	5d47acef5c7aa883987b4388091e1b37f1d7b117

Added Files:
	boinc-git/patches/patch-clientgui_AsyncRPC.cpp

Log Message:
boinc-git: Really add a missing patch

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5d47acef5c7aa883987b4388091e1b37f1d7b117

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 boinc-git/patches/patch-clientgui_AsyncRPC.cpp | 36 ++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diffs:
diff --git a/boinc-git/patches/patch-clientgui_AsyncRPC.cpp b/boinc-git/patches/patch-clientgui_AsyncRPC.cpp
new file mode 100644
index 0000000..4536c11
--- /dev/null
+++ b/boinc-git/patches/patch-clientgui_AsyncRPC.cpp
@@ -0,0 +1,36 @@
+$NetBSD$
+
+Correct header path.
+Do not use uselocale on NetBSD.
+
+--- clientgui/AsyncRPC.cpp.orig	2016-07-07 11:29:38.000000000 +0000
++++ clientgui/AsyncRPC.cpp
+@@ -20,7 +20,7 @@
+ #endif
+ 
+ #if !(defined(_WIN32) || (defined(__WXMAC__) && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4)))
+-#include <xlocale.h>
++#include <wx/xlocale.h>
+ #endif
+ 
+ #include "stdwx.h"
+@@ -149,7 +149,9 @@ void *RPCThread::Entry() {
+     {
+         // On Mac / Unix / Linux, set "C" locale for this thread only
+         RPC_Thread_Locale = newlocale(LC_ALL_MASK, "C", NULL);
++#if !defined(__NetBSD__)
+         uselocale(RPC_Thread_Locale);
++#endif
+     }
+ #endif      // ifndef __WXMSW__
+ #endif      // ifndef NO_PER_THREAD_LOCALE
+@@ -170,7 +172,9 @@ void *RPCThread::Entry() {
+         if (uselocale)    // uselocale() is not available in Mac OS 10.3.9
+ #endif
+         {
++#if !defined(__NetBSD__)
+             uselocale(LC_GLOBAL_LOCALE);
++#endif
+             freelocale(RPC_Thread_Locale);
+         }
+ #endif


Home | Main Index | Thread Index | Old Index