Build failure on linux with gcc 4.4.3

Build failure on linux with gcc 4.4.3

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
abompard
Posts: 19
Joined: 17 Jan 2009, 18:26

Build failure on linux with gcc 4.4.3

Post by abompard »

Hi all,

With very recent versions of GCC (tested with 4.4.3), there's a build failure due to missing headers. The following patch fixes it :

Code: Select all

diff -up ./rts/System/ConfigHandler.cpp.includes ./rts/System/ConfigHandler.cpp
--- ./rts/System/ConfigHandler.cpp.includes     2010-01-24 06:39:25.426129977 +0100
+++ ./rts/System/ConfigHandler.cpp      2010-01-24 06:40:26.377789515 +0100
@@ -16,10 +16,8 @@
 #include <stdexcept>
 #ifndef WIN32
 #include <unistd.h>
-#endif
-
-#ifdef __APPLE__
 #include <sys/stat.h>
+#include <sys/types.h>
 #endif

 #ifdef WIN32
Please consider it for inclusion. Thanks !
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Build failure on linux with gcc 4.4.3

Post by hoijui »

have it.. just need to push.
abompard
Posts: 19
Joined: 17 Jan 2009, 18:26

Re: Build failure on linux with gcc 4.4.3

Post by abompard »

Cool, thanks.
Post Reply

Return to “Engine”