1
0
forked from pool/boinc-client
boinc-client/xlocale.patch

38 lines
1.4 KiB
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2017-09-03 00:10:38.255132582 +0200
build: use xlocale.h instead of locale.h
glibc-2.26 has dropped xlocale.h.
---
clientgui/AsyncRPC.cpp | 2 +-
lib/gui_rpc_client.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: boinc-client_release-7.6-7.6.33/clientgui/AsyncRPC.cpp
===================================================================
--- boinc-client_release-7.6-7.6.33.orig/clientgui/AsyncRPC.cpp
+++ boinc-client_release-7.6-7.6.33/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 <locale.h>
#endif
#include "stdwx.h"
Index: boinc-client_release-7.6-7.6.33/lib/gui_rpc_client.h
===================================================================
--- boinc-client_release-7.6-7.6.33.orig/lib/gui_rpc_client.h
+++ boinc-client_release-7.6-7.6.33/lib/gui_rpc_client.h
@@ -801,7 +801,7 @@ struct RPC {
#elif defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4)
// uselocale() is not available in OS 10.3.9 so use weak linking
-#include <xlocale.h>
+#include <locale.h>
extern int freelocale(locale_t) __attribute__((weak_import));
extern locale_t newlocale(int, __const char *, locale_t) __attribute__((weak_import));
extern locale_t uselocale(locale_t) __attribute__((weak_import));