- Fix build on DragonFly

This commit is contained in:
Dmitry Marakasov 2015-04-14 00:51:31 +00:00
parent 6574fab10f
commit 4e33706127
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383969
5 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/lisp/lexer.cpp.orig 2007-09-14 09:43:03.000000000 +0400
+++ src/lisp/lexer.cpp 2015-03-27 02:52:52.633169000 +0300
@@ -19,6 +19,8 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <sstream>
#include <stdexcept>
+#include <cstring>
+#include <cstdio>
#include "lexer.hpp"
#include "translation.hpp"

View File

@ -0,0 +1,11 @@
--- src/lisp/lisp.cpp.orig 2007-09-14 09:43:03.000000000 +0400
+++ src/lisp/lisp.cpp 2015-03-27 02:52:43.801343000 +0300
@@ -17,6 +17,8 @@
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#include <cstdio>
+
#include "lisp.hpp"
namespace lisp

View File

@ -0,0 +1,10 @@
--- src/lisp/parser.cpp.orig 2007-09-14 09:43:03.000000000 +0400
+++ src/lisp/parser.cpp 2015-03-27 02:51:42.723015000 +0300
@@ -20,6 +20,7 @@
#include <sstream>
#include <stdexcept>
#include <fstream>
+#include <cstring>
#include <cassert>

View File

@ -0,0 +1,10 @@
--- src/sdl_driver.cpp.orig 2007-09-14 09:43:03.000000000 +0400
+++ src/sdl_driver.cpp 2015-03-27 02:55:29.588996000 +0300
@@ -5,6 +5,7 @@
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <cstdio>
+#include <cstdlib>
#include "sdl_driver.h"
#include "canvas.h"

View File

@ -0,0 +1,9 @@
--- src/videooptions.cpp.orig 2015-03-27 02:53:21.432311000 +0300
+++ src/videooptions.cpp 2015-03-27 02:53:29.960147000 +0300
@@ -1,5 +1,6 @@
#include <vector>
#include <sstream>
+#include <algorithm>
#include <SDL/SDL.h>