Control: reopen -1 Hello,
Version 5.12.5+dfsg-3 added the build of the mapbox plugin, which has a portability issue. The attached patch was commited upstream, could you apply it? https://github.com/mapbox/mapbox-gl-native/pull/16085 Thanks, Samuel
commit e4cab3f37fda236339d40a0de291cd75c9b1a51e Author: Samuel Thibault <samuel.thiba...@ens-lyon.org> Date: Sun Dec 29 15:27:58 2019 +0100 [util] fix thread.cpp portability diff --git a/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp b/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp index 28772d956..58a7c12bc 100644 --- a/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp +++ b/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp @@ -12,26 +12,32 @@ namespace platform { std::string getCurrentThreadName() { char name[32] = "unknown"; +#ifdef __linux__ pthread_getname_np(pthread_self(), name, sizeof(name)); +#endif return name; } void setCurrentThreadName(const std::string& name) { +#ifdef __linux__ if (name.size() > 15) { // Linux hard limit (see manpages). pthread_setname_np(pthread_self(), name.substr(0, 15).c_str()); } else { pthread_setname_np(pthread_self(), name.c_str()); } +#endif } void makeThreadLowPriority() { +#ifdef SCHED_IDLE struct sched_param param; param.sched_priority = 0; if (sched_setscheduler(0, SCHED_IDLE, ¶m) != 0) { Log::Warning(Event::General, "Couldn't set thread scheduling policy"); } +#endif } } // namespace platform