$OpenBSD: patch-cmn_physical_cpp,v 1.4 2018/12/20 23:20:07 naddy Exp $
Index: cmn/physical.cpp
--- cmn/physical.cpp.orig
+++ cmn/physical.cpp
@@ -33,10 +33,13 @@
 // Include Files
 #include "xdata.h"
 #include "physical.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>
@@ -1844,7 +1847,7 @@ void* Moving::compute_key(Dir dir,int animNum,Boolean 
   }
 
   // Use the pixmap resource id as the base.
-  u_int cmnBitsId = (unsigned int)mc->pixmapBits[baseDir][animNum];
+  u_int cmnBitsId = (uintptr_t)mc->pixmapBits[baseDir][animNum];
 
   // It is ok to call OneTransform::compute_key() even if there is no 
   // transformation, will just return 0x0.  
