diff -up scorched/src/common/DefinesFile.cpp~ scorched/src/common/DefinesFile.cpp
--- scorched/src/common/DefinesFile.cpp~ 2008-01-11 22:13:08.000000000 +0100
+++ scorched/src/common/DefinesFile.cpp 2008-01-11 22:13:08.000000000 +0100
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <string>
#include <common/DefinesFile.h>
#include <sys/types.h>
diff -up scorched/src/common/main.h~ scorched/src/common/main.h
--- scorched/src/common/main.h~ 2008-01-11 22:06:02.000000000 +0100
+++ scorched/src/common/main.h 2008-01-11 22:06:02.000000000 +0100
@@ -25,6 +25,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include <stdlib.h>
static ARGParser aParser;
char scorched3dAppName[128];
@@ -40,7 +41,7 @@ int _matherr(struct _exception *e)
void _no_storage()
{
printf("Failed to allocate memory!!");
- std::exit(1);
+ exit(1);
}
void run_main(int argc, char *argv[], OptionsParameters ¶ms)
diff -up scorched/src/common/sha2.h~ scorched/src/common/sha2.h
--- scorched/src/common/sha2.h~ 2008-01-11 22:15:38.000000000 +0100
+++ scorched/src/common/sha2.h 2008-01-11 22:15:38.000000000 +0100
@@ -45,6 +45,7 @@
#define __SHA2C_H__
#include <string>
+#include <cstring>
#include <stdexcept>
// NOTE: You may need to define things by hand for your system:
diff -up scorched/src/common/LoggerI.cpp~ scorched/src/common/LoggerI.cpp
--- scorched/src/common/LoggerI.cpp~ 2008-01-11 22:13:48.000000000 +0100
+++ scorched/src/common/LoggerI.cpp 2008-01-11 22:13:48.000000000 +0100
@@ -20,6 +20,7 @@
#include <common/LoggerI.h>
#include <time.h>
+#include <string.h>
LoggerInfo::LoggerInfo(
const char *message,