blob: b8fb4df00bbd71891294b5ed673c2a6cf9472f9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- 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;
}
|