summaryrefslogblamecommitdiff
path: root/user/qt5-qtpositioning/no-getting-thread-names.patch
blob: 63aa8f66cc2a4e730f65e6427e85fee90342ea37 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                                                           
--- qtlocation-opensource-src-5.9.6/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp.old	2017-11-29 18:38:56.000000000 +0000
+++ qtlocation-opensource-src-5.9.6/src/3rdparty/mapbox-gl-native/platform/default/thread.cpp	2018-07-16 09:24:16.990000000 +0000
@@ -11,7 +11,9 @@
 
 std::string getCurrentThreadName() {
     char name[32] = "unknown";
+#ifdef __GLIBC__
     pthread_getname_np(pthread_self(), name, sizeof(name));
+#endif
 
     return name;
 }