* [gentoo-commits] gentoo-x86 commit in games-strategy/scorched3d/files: scorched3d-43.3d-gcc47.patch
@ 2012-05-30 8:32 Sergei Trofimovich (slyfox)
0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich (slyfox) @ 2012-05-30 8:32 UTC (permalink / raw
To: gentoo-commits
slyfox 12/05/30 08:32:59
Added: scorched3d-43.3d-gcc47.patch
Log:
Fix build failure against gcc-4.7 (missing prototypes)
(Portage version: 2.2.0_alpha108_p3/cvs/Linux x86_64)
Revision Changes Path
1.1 games-strategy/scorched3d/files/scorched3d-43.3d-gcc47.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/scorched3d/files/scorched3d-43.3d-gcc47.patch?rev=1.1&view=markup
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
Index: scorched3d-43.3d-gcc47.patch
===================================================================
Fix build failure against gcc-4.7 (missing <unistd.h> for close())
../client/SecureID.cpp: In member function 'std::string SecureID::GetPrivateKey()':
../client/SecureID.cpp:92:13: error: 'close' was not declared in this scope
../client/SecureID.cpp:102:14: error: 'close' was not declared in this scope
../client/SecureID.cpp:115:13: error: 'close' was not declared in this scope
../client/SecureID.cpp:124:12: error: 'close' was not declared in this scope
make[3]: *** [SecureID.o] Error 1
diff --git a/src/client/client/SecureID.cpp b/src/client/client/SecureID.cpp
index bc276c4..5eb2f13 100644
--- a/src/client/client/SecureID.cpp
+++ b/src/client/client/SecureID.cpp
@@ -75,6 +75,7 @@ std::string SecureID::GetPrivateKey(void)
#include <sys/ioctl.h>
#include <net/if.h>
+#include <unistd.h>
std::string SecureID::GetPrivateKey(void)
{
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-30 8:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-30 8:32 [gentoo-commits] gentoo-x86 commit in games-strategy/scorched3d/files: scorched3d-43.3d-gcc47.patch Sergei Trofimovich (slyfox)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox