File intptr.patch of Package xiterm

Index: unix/Xaw/lib/scrollbar.c
===================================================================
RCS file: /cvsroot/iterm/unix/Xaw/lib/scrollbar.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 scrollbar.c
--- unix/Xaw/lib/scrollbar.c	2002/08/13 07:10:29	1.1.1.1
+++ unix/Xaw/lib/scrollbar.c	2004/03/05 10:20:23
@@ -18,6 +18,7 @@
 
 
 #include <stdio.h>
+#include <stdint.h>
 
 void set_thumb_values(Widget w, float top, float shown)
 {
@@ -45,7 +46,7 @@
 {
   VTWidget vt = (VTWidget)client_data;
 
-  if( (int)call_data < 0)
+  if( (intptr_t) call_data < 0)
       VTCore_scroll_up(vt->vt.vtcore,vt->vt.num_rows/2);
   else
       VTCore_scroll_down(vt->vt.vtcore,vt->vt.num_rows/2);
Index: unix/Xaw/src/popup_menu.c
===================================================================
RCS file: /cvsroot/iterm/unix/Xaw/src/popup_menu.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 popup_menu.c
--- unix/Xaw/src/popup_menu.c	2002/08/13 07:10:37	1.1.1.1
+++ unix/Xaw/src/popup_menu.c	2004/03/05 10:20:23
@@ -11,6 +11,7 @@
 #include <X11/Xaw/SimpleMenu.h>
 #include <X11/Xaw/SmeBSB.h>
 #include <X11/StringDefs.h>
+#include <stdint.h>
 #include "Iterm.h"
 
 extern Widget iterm;
@@ -57,7 +58,7 @@
 
 static void font_callback(Widget w, XtPointer p, XtPointer p2)
 {
-  int num = (int)p;
+  int num = (intptr_t) p;
   int i;
   struct MenuEntry *entries = font_menu_entry;
   if(0<=num && num<=6)
@@ -106,7 +107,7 @@
   for(i=0;entries[i].name != NULL;i++)
   {
     cb[0].callback = entries[i].proc;
-    cb[0].closure =(XtPointer)i;
+    cb[0].closure =(XtPointer)(intptr_t) i;
     entries[i].entry_widget = XtCreateManagedWidget(entries[i].name,
                                                      smeBSBObjectClass,
                                                      popup,