pkgsrc-ng/games/xu4/patches/patch-src_moongate.cpp
2013-09-26 17:14:40 +02:00

18 lines
431 B
C++

$NetBSD: patch-src_moongate.cpp,v 1.1 2012/12/24 06:28:16 dholland Exp $
Provide NULL if it's missing. Apparently Required on Dragonfly.
--- src/moongate.cpp~ 2004-06-01 15:07:45.000000000 +0000
+++ src/moongate.cpp
@@ -11,6 +11,10 @@
#include "moongate.h"
#include "types.h"
+#ifndef NULL
+#define NULL 0
+#endif
+
typedef std::map<int, Coords> MoongateList; /* map moon phase to map coordinates */
MoongateList gates;