--- 3rdparty/solid-lite/backends/udisks2/udisksblock.h.orig	2016-01-08 19:44:42.000000000 +0100
+++ 3rdparty/solid-lite/backends/udisks2/udisksblock.h	2017-03-09 11:41:06.071250302 +0100
@@ -21,6 +21,7 @@
 #ifndef UDISKS2BLOCK_H
 #define UDISKS2BLOCK_H
 
+#include <sys/types.h>
 #include <solid-lite/ifaces/block.h>
 #include "udisksdeviceinterface.h"
 
--- gui/main.cpp.orig	2018-06-16 10:09:13.072771604 +0200
+++ gui/main.cpp	2018-06-16 10:10:00.840162507 +0200
@@ -260,7 +260,7 @@
     qInstallMessageHandler(cantataQtMsgHandler);
 }
 
-#if defined Q_OS_LINUX && defined __GNUC__
+#if defined Q_OS_LINUX && defined __GNUC__ && defined __GLIBC__
 #include <execinfo.h>
 #include <unistd.h>
 #include <signal.h>
@@ -340,7 +340,7 @@
 
 int main(int argc, char *argv[])
 {
-    #if defined Q_OS_LINUX && defined __GNUC__
+    #if defined Q_OS_LINUX && defined __GNUC__ && defined __GLIBC__
     signal(SIGSEGV, sigHandler);
     #endif
     QThread::currentThread()->setObjectName("GUI");
