Fix build with clang/libc++

This commit is contained in:
Dmitry Marakasov
2013-09-14 01:14:15 +00:00
parent 0278d5cd6a
commit bae8888daf
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- game/choosestadium.cpp.orig 2013-09-13 21:14:11.171227695 +0400
+++ game/choosestadium.cpp 2013-09-13 21:14:29.875227107 +0400
@@ -5,6 +5,7 @@
#include <fstream>
#include <sys/stat.h>
#include <dirent.h>
+#include <unistd.h> // for chdir()
#define THEMES_DIR "/home/amdmi3/projects/freebsd/ports/games/chapping/prefix/share/chapping/themes/"

View File

@@ -0,0 +1,8 @@
--- game/soccergame.cpp.orig 2013-09-13 20:44:15.075226353 +0400
+++ game/soccergame.cpp 2013-09-13 20:45:02.462227890 +0400
@@ -1,3 +1,5 @@
+#include <unistd.h> // for chdir
+
#include "soccergame.h"
#include "stadium.h"
#include "menuchapping.h"