File uae-0.8.22-ia64.patch of Package uae

--- src/debug.c
+++ src/debug.c
@@ -14,6 +14,7 @@
 #include <signal.h>
 
 #include "config.h"
+#include "disk.h"
 #include "options.h"
 #include "threaddep/thread.h"
 #include "uae.h"
--- src/gtkui.c
+++ src/gtkui.c
@@ -17,6 +17,7 @@
 #include "sysdeps.h"
 
 #include "config.h"
+#include "debug.h"
 #include "options.h"
 #include "uae.h"
 #include "memory.h"
--- src/include/disk.h
+++ src/include/disk.h
@@ -17,6 +17,7 @@
 extern void DISK_handler (void);
 extern void DISK_update (void);
 extern void DISK_reset (void);
+extern void dumpdisk (void);
 
 extern void DSKLEN (uae_u16 v, int hpos);
 extern uae_u16 DSKDATR (int hpos);
--- src/uaelib.c
+++ src/uaelib.c
@@ -297,14 +297,14 @@
  * @@@ Brian: I disabled it to prevent people from starting to use it - if that happens, we're
  *            stuck with this.
  */
-static uae_u32 FindFunctionInObject (uae_u8 *objectptr)
+static void *FindFunctionInObject (uae_u8 *objectptr)
 {
     uae_u8 *text_hdr;
     uae_u8 offset;
     text_hdr = (uae_u8 *)strstr ("text", (char *)objectptr);
     if (text_hdr != 0) {
 	offset = *(text_hdr + 19);
-	return (uae_u32)(objectptr + offset);
+	return (void*)(objectptr + offset);
     }
     return 0;
 }
openSUSE Build Service is sponsored by