--- compositing_manager.cpp	2018-02-16 23:26:46.157644103 +0100
+++ src/libdmr/compositing_manager.cpp	2018-02-16 23:31:57.378630531 +0100
@@ -46,6 +46,10 @@
 #undef Bool
 #include <mpv/qthelper.hpp>
 
+#if !defined(__GLIBC__)
+#include <libgen.h>
+#endif
+
 typedef const char * glXGetScreenDriver_t (Display *dpy, int scrNum);
 
 static glXGetScreenDriver_t *GetScreenDriver;
