1 |
xarthisius 13/03/03 11:33:01 |
2 |
|
3 |
Added: valkyrie-2.0.0-gcc47.patch |
4 |
Log: |
5 |
Fix building with gcc-4.7 wrt #421867. Thanks to LE GARREC Vincent <legarrec.vincent@×××××.com> for patch |
6 |
|
7 |
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 895192F9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-util/valkyrie/files/valkyrie-2.0.0-gcc47.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valkyrie/files/valkyrie-2.0.0-gcc47.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valkyrie/files/valkyrie-2.0.0-gcc47.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: valkyrie-2.0.0-gcc47.patch |
16 |
=================================================================== |
17 |
Fix building with gcc-4.7 |
18 |
|
19 |
https://bugs.gentoo.org/show_bug.cgi?id=421867 |
20 |
|
21 |
Patch written by LE GARREC Vincent <legarrec.vincent@×××××.com> |
22 |
--- a/src/objects/tool_object.cpp |
23 |
+++ b/src/objects/tool_object.cpp |
24 |
@@ -50,6 +50,7 @@ stopProcess() |
25 |
#include <QKeySequence> |
26 |
#include <QString> |
27 |
#include <QStringList> |
28 |
+#include <unistd.h> // usleep |
29 |
|
30 |
|
31 |
#if 1 |
32 |
--- a/src/utils/vk_config.cpp |
33 |
+++ b/src/utils/vk_config.cpp |
34 |
@@ -25,6 +25,8 @@ |
35 |
#include "utils/vk_utils.h" |
36 |
|
37 |
#include <pwd.h> // getpwuid |
38 |
+#include <sys/types.h> // getuid |
39 |
+#include <unistd.h> // getuid |
40 |
|
41 |
#include <QColor> |
42 |
#include <QDir> |
43 |
--- a/src/utils/vk_utils.cpp |
44 |
+++ b/src/utils/vk_utils.cpp |
45 |
@@ -22,6 +22,8 @@ |
46 |
#include "utils/vk_config.h" // vkname() |
47 |
|
48 |
#include <cstdlib> // exit, mkstemp, free/malloc, etc |
49 |
+#include <sys/types.h> // getpid |
50 |
+#include <unistd.h> // getpid |
51 |
|
52 |
#include <QDateTime> |
53 |
#include <QFile> |