b97ff92587
- Remove INSTALLS_ICONS knob (not to be used for Qt-based programs) - Rephrase COMMENT and TOOLKIT_DESC - Fix a few whitespace issues PR: 204440
22 lines
544 B
C++
22 lines
544 B
C++
--- src/qjackctl.cpp.orig 2015-10-28 15:24:52 UTC
|
|
+++ src/qjackctl.cpp
|
|
@@ -30,6 +30,10 @@
|
|
|
|
#include <QSessionManager>
|
|
|
|
+#ifdef HAVE_UNISTD_H
|
|
+#include <unistd.h>
|
|
+#endif
|
|
+
|
|
#if QT_VERSION < 0x040500
|
|
namespace Qt {
|
|
const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000);
|
|
@@ -216,7 +220,7 @@ public:
|
|
sUnique += sServerName;
|
|
}
|
|
char szHostName[255];
|
|
- if (::gethostname(szHostName, sizeof(szHostName)) == 0) {
|
|
+ if (gethostname(szHostName, sizeof(szHostName)) == 0) {
|
|
sUnique += '@';
|
|
sUnique += szHostName;
|
|
}
|