Make usable outside libc.
authordrepper <drepper>
Tue, 2 May 2006 00:44:18 +0000 (00:44 +0000)
committerdrepper <drepper>
Tue, 2 May 2006 00:44:18 +0000 (00:44 +0000)
sysdeps/generic/unwind-dw2.c

index e61326d..978d796 100644 (file)
@@ -25,6 +25,7 @@
 #include <error.h>
 #include <libintl.h>
 #include <dwarf2.h>
+#include <stdio.h>
 #include <unwind.h>
 #include <unwind-pe.h>
 #include <unwind-dw2-fde.h>
@@ -837,10 +838,11 @@ execute_cfa_program (const unsigned char *insn_ptr,
        case DW_CFA_restore_state:
          {
            struct frame_state_reg_info *old_rs = fs->regs.prev;
-
+#ifdef _LIBC
            if (rs == NULL)
              __libc_fatal ("invalid DWARF unwind data");
            else
+#endif
              {
                fs->regs = *old_rs;
                old_rs->prev = unused_rs;