$OpenBSD: patch-cmn_actual_cpp,v 1.3 2018/12/20 23:20:07 naddy Exp $
Index: cmn/actual.cpp
--- cmn/actual.cpp.orig
+++ cmn/actual.cpp
@@ -32,8 +32,11 @@
 
 // Include Files
 #if X11
-#include <strstream.h>
+#include <strstream>
+using namespace std;
+using namespace std;
 #endif
+#include <stdint.h>
 #if WIN32
 #include <strstrea.h>
 #include "resource.h"
@@ -1534,7 +1537,7 @@ Boolean Transmogifier::transmogify_target_filter(const
                                                  void *closure) {
   // notThis is used to prevent transmogifying into the same class an object
   // already is.
-  ClassId notThis = (ClassId)closure;
+  ClassId notThis = (intptr_t)closure;
   if (pc->classId == notThis) {
     return False;
   }
