openbsd-ports/games/xevil/patches/patch-cmn_xetp_cpp
landry a6b7b3244e Add a bunch of patch chunks shamelessly stolen from FreeBSD to allow this
to build (and even run!) on gcc4 archs. While here, precise licence marker
and bump PKGNAME.
2010-06-15 19:04:05 +00:00

28 lines
778 B
Plaintext

$OpenBSD: patch-cmn_xetp_cpp,v 1.2 2010/06/15 19:04:05 landry Exp $
--- cmn/xetp.cpp.orig Wed Jan 19 12:54:30 2000
+++ cmn/xetp.cpp Tue Jun 15 20:46:20 2010
@@ -29,9 +29,12 @@
#include "stdafx.h"
-#include <iostream.h>
+#include <iostream>
+
+using namespace std;
+
#if X11
-#include <strstream.h>
+#include <strstream>
#endif
#if WIN32
#include <strstrea.h>
@@ -159,7 +162,7 @@ void XETP::send_objects(OutStreamP out,const PtrList &
for (n = 0; n < physicals.length(); n++) {
PhysicalP p = (PhysicalP)physicals.get(n);
// computing object_length twice, but who cares.
- _send_object(out,p,turn,(TickType)tickTypes.get(n),
+ _send_object(out,p,turn,(intptr_t)tickTypes.get(n),
compute_object_length(p));
}