--- src/qjackctl.cpp.orig 2016-04-05 15:57:30 UTC +++ src/qjackctl.cpp @@ -30,6 +30,10 @@ #include +#ifdef HAVE_UNISTD_H +#include +#endif + #if QT_VERSION < 0x040500 namespace Qt { const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000); @@ -218,7 +222,7 @@ public: sUnique += sServerName; } char szHostName[255]; - if (::gethostname(szHostName, sizeof(szHostName)) == 0) { + if (gethostname(szHostName, sizeof(szHostName)) == 0) { sUnique += '@'; sUnique += szHostName; }