$OpenBSD: patch-cmn_xetp_cpp,v 1.3 2018/12/20 23:20:07 naddy Exp $
Index: cmn/xetp.cpp
--- cmn/xetp.cpp.orig
+++ cmn/xetp.cpp
@@ -29,9 +29,13 @@
 
 #include "stdafx.h"
 
-#include <iostream.h>
+#include <iostream>
+
+using namespace std;
+
+#include <stdint.h>
 #if X11
-#include <strstream.h>
+#include <strstream>
 #endif
 #if WIN32
 #include <strstrea.h>
@@ -159,7 +163,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));
   }
   
