summaryrefslogtreecommitdiff
blob: d2d33166a85cd43d6f502853e5e1590a57addf5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Fix building with gcc-4.7

https://bugs.gentoo.org/show_bug.cgi?id=421867

Patch written by LE GARREC Vincent <legarrec.vincent@gmail.com>
--- a/src/objects/tool_object.cpp
+++ b/src/objects/tool_object.cpp
@@ -50,6 +50,7 @@ stopProcess()
 #include <QKeySequence>
 #include <QString>
 #include <QStringList>
+#include <unistd.h>              // usleep
 
 
 #if 1
--- a/src/utils/vk_config.cpp
+++ b/src/utils/vk_config.cpp
@@ -25,6 +25,8 @@
 #include "utils/vk_utils.h"
 
 #include <pwd.h>     // getpwuid
+#include <sys/types.h>         // getuid
+#include <unistd.h>            // getuid
 
 #include <QColor>
 #include <QDir>
--- a/src/utils/vk_utils.cpp
+++ b/src/utils/vk_utils.cpp
@@ -22,6 +22,8 @@
 #include "utils/vk_config.h"        // vkname()
 
 #include <cstdlib>                  // exit, mkstemp, free/malloc, etc
+#include <sys/types.h>              // getpid
+#include <unistd.h>                 // getpid
 
 #include <QDateTime>
 #include <QFile>