Gentoo Archives: gentoo-commits

From: "Sergei Trofimovich (slyfox)" <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/scorched3d/files: scorched3d-43.3d-gcc47.patch
Date: Wed, 30 May 2012 08:33:18
Message-Id: 20120530083259.7AA792004C@flycatcher.gentoo.org
1 slyfox 12/05/30 08:32:59
2
3 Added: scorched3d-43.3d-gcc47.patch
4 Log:
5 Fix build failure against gcc-4.7 (missing prototypes)
6
7 (Portage version: 2.2.0_alpha108_p3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 games-strategy/scorched3d/files/scorched3d-43.3d-gcc47.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.3d-gcc47.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.3d-gcc47.patch?rev=1.1&content-type=text/plain
14
15 Index: scorched3d-43.3d-gcc47.patch
16 ===================================================================
17 Fix build failure against gcc-4.7 (missing <unistd.h> for close())
18
19 ../client/SecureID.cpp: In member function 'std::string SecureID::GetPrivateKey()':
20 ../client/SecureID.cpp:92:13: error: 'close' was not declared in this scope
21 ../client/SecureID.cpp:102:14: error: 'close' was not declared in this scope
22 ../client/SecureID.cpp:115:13: error: 'close' was not declared in this scope
23 ../client/SecureID.cpp:124:12: error: 'close' was not declared in this scope
24
25 make[3]: *** [SecureID.o] Error 1
26 diff --git a/src/client/client/SecureID.cpp b/src/client/client/SecureID.cpp
27 index bc276c4..5eb2f13 100644
28 --- a/src/client/client/SecureID.cpp
29 +++ b/src/client/client/SecureID.cpp
30 @@ -75,6 +75,7 @@ std::string SecureID::GetPrivateKey(void)
31
32 #include <sys/ioctl.h>
33 #include <net/if.h>
34 +#include <unistd.h>
35
36 std::string SecureID::GetPrivateKey(void)
37 {