File libunwind-0.98.6.diff of Package libunwind

--- include/internal.h
+++ include/internal.h
@@ -201,11 +201,11 @@ extern int unwi_dyn_validate_cache (unw_
 extern unw_dyn_info_list_t _U_dyn_info_list;
 extern pthread_mutex_t _U_dyn_info_list_lock;
 
+#include <stdio.h>
 #if UNW_DEBUG
 #define unwi_debug_level		UNWI_ARCH_OBJ(debug_level)
 extern long unwi_debug_level;
 
-# include <stdio.h>
 # define Debug(level,format...)						\
 do {									\
   if (unwi_debug_level > level)						\
--- src/x86_64/Gresume.c
+++ src/x86_64/Gresume.c
@@ -35,6 +35,7 @@ HIDDEN inline int
 x86_64_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
 {
 # warning Implement me!
+  return -UNW_EINVAL;
 }
 
 #endif /* !UNW_REMOTE_ONLY */
--- tests/Gtest-concurrent.c
+++ tests/Gtest-concurrent.c
@@ -84,9 +84,10 @@ doit (void)
   int i;
 
   for (i = 0; i < NTHREADS; ++i)
-    pthread_create (th + i, NULL, worker, NULL);
+    if (pthread_create (th + i, NULL, worker, NULL))
+      break;
 
-  for (i = 0; i < NTHREADS; ++i)
+  while (i-- > 0)
     pthread_join (th[i], NULL);
 }
 
--- tests/Makefile.am
+++ tests/Makefile.am
@@ -23,7 +23,7 @@ if ARCH_IA64
 			Gia64-test-nat Lia64-test-nat			\
 			Gia64-test-rbs Lia64-test-rbs			\
 			Gia64-test-readonly Lia64-test-readonly		\
-			ia64-test-setjmp ia64-test-sig
+			ia64-test-sig
 endif
  check_SCRIPTS_cdep =	run-ptrace-mapper run-ptrace-misc
  check_PROGRAMS_cdep =	Gtest-bt Ltest-bt Gtest-exc Ltest-exc		 \
--- tests/Makefile.in
+++ tests/Makefile.in
@@ -73,7 +73,6 @@ am__EXEEXT_1 = test-proc-info$(EXEEXT) t
 @ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@	Lia64-test-rbs$(EXEEXT) \
 @ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@	Gia64-test-readonly$(EXEEXT) \
 @ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@	Lia64-test-readonly$(EXEEXT) \
-@ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@	ia64-test-setjmp$(EXEEXT) \
 @ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@	ia64-test-sig$(EXEEXT)
 am__EXEEXT_4 =
 @REMOTE_ONLY_FALSE@am__EXEEXT_5 = forker$(EXEEXT) mapper$(EXEEXT) \
@@ -459,7 +458,7 @@ check_SCRIPTS_common = run-check-namespa
 @ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@			Gia64-test-nat Lia64-test-nat			\
 @ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@			Gia64-test-rbs Lia64-test-rbs			\
 @ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@			Gia64-test-readonly Lia64-test-readonly		\
-@ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@			ia64-test-setjmp ia64-test-sig
+@ARCH_IA64_TRUE@@REMOTE_ONLY_FALSE@			ia64-test-sig
 
 check_SCRIPTS = $(check_SCRIPTS_common) $(check_SCRIPTS_cdep) \
 		$(check_SCRIPTS_arch)
--- tests/ia64-test-setjmp.c
+++ tests/ia64-test-setjmp.c
@@ -34,6 +34,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DE
 #include <setjmp.h>
 #include <signal.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 
 #include <sys/mman.h>
openSUSE Build Service is sponsored by