X-Moto

Tasklist

FS#800 - Fails to build with gcc 4.7

Attached to Project: X-Moto
Opened by Anonymous Submitter - Tuesday, 17 April 2012, 06:17 GMT
Task Type Bug Report
Category General
Status Unconfirmed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version 0.5.9
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hi,

Version 0.5.9 fails to build with gcc 4.7; the following patch fixes this:

--- xmoto-0.5.9.orig/src/helpers/System.cpp
+++ xmoto-0.5.9/src/helpers/System.cpp
@@ -24,6 +24,7 @@
#include "Log.h"
#include "VExcept.h"
#include <sstream>
+#include <unistd.h>

std::vector<std::string>* System::getDisplayModes(int windowed) {
std::vector<std::string>* modes = new std::vector<std::string>;


Regards,

Stephen Kitt <steve@sk2.org>
This task depends upon

Loading...