--- 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;
 }