$NetBSD: patch-ak,v 1.2 2008/08/17 23:50:06 dholland Exp $ --- cmn/physical.cpp.orig 2000-01-19 20:38:14.000000000 -0500 +++ cmn/physical.cpp 2008-08-17 19:15:00.000000000 -0400 @@ -33,10 +33,11 @@ // Include Files #include "xdata.h" #include "physical.h" -#include +#include +using namespace std; #if X11 -#include +#include #endif #if WIN32 #include @@ -1844,7 +1845,7 @@ void* Moving::compute_key(Dir dir,int an } // Use the pixmap resource id as the base. - u_int cmnBitsId = (unsigned int)mc->pixmapBits[baseDir][animNum]; + u_int cmnBitsId = (unsigned int)(uintptr_t)mc->pixmapBits[baseDir][animNum]; // It is ok to call OneTransform::compute_key() even if there is no // transformation, will just return 0x0.