File memprof-0.5.1-protos.patch of Package memprof

--- stack-frame.c
+++ stack-frame.c
@@ -72,12 +72,12 @@
 
 #define HAVE_FRAME_ACCESSORS
 
-#if defined (__GNUC__) && defined (__i386__)
 typedef struct stack_frame_struct stack_frame;
 struct stack_frame_struct {
     stack_frame *next;
     void *return_address;
 };
+#if defined (__GNUC__) && defined (__i386__)
 
 static inline stack_frame *
 first_frame (void)
@@ -97,6 +97,9 @@
     return (fp != 0) ? fp->return_address : 0;
 }
 
+#else
+stack_frame* next_frame(stack_frame* fp);
+void* frame_return_address(stack_frame* fp);
 #endif
 
 #ifndef HAVE_BACKTRACE
openSUSE Build Service is sponsored by