opnsense-ports/games/xevil/files/patch-x11__main.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

34 lines
604 B
C++

--- x11/main.cpp.orig 2012-05-27 06:52:29.000000000 +0900
+++ x11/main.cpp 2012-05-27 06:52:58.000000000 +0900
@@ -25,6 +25,7 @@
#include "utils.h"
extern "C" {
+#include <stdlib.h>
#include <X11/Xutil.h>
#ifdef OPENWOUND_XOS_STRLEN_HACK
@@ -33,13 +34,13 @@
#include <X11/Xos.h>
}
-#include <iostream.h>
+#include <iostream>
#include "utils.h"
#include "neth.h"
#include "game.h"
-
+GameP g_game;
class TurnStarter: public ITurnStarter {
public:
@@ -68,6 +69,7 @@
Utils::seed_random();
GameP game = new Game(&argc,argv);
+ g_game = game;
// assert (clock() != -1);