File memprof.diff of Package memprof

--- mi-perfctr.c
+++ mi-perfctr.c
@@ -94,7 +94,7 @@
 	
 	MI_DEBUG (("Turning on performance monitoring timer support\n"));
 
-	if ((perfctr_fd = open ("/proc/self/perfctr", O_RDONLY | O_CREAT)) < 0) {
+	if ((perfctr_fd = open ("/proc/self/perfctr", O_RDONLY)) < 0) {
 		mi_perror ("Error opening /proc/self/perfctr");
 		goto bail;
 	}
--- stack-frame.c
+++ stack-frame.c
@@ -152,7 +152,7 @@
     int nframes = 64;
     void **frames = alloca (sizeof (void *) * nframes);
     int depth;
-    stack_frame *frame;
+    void *frame;
 
     frames[0] = first_address;
 
openSUSE Build Service is sponsored by