From 893cc06fc2ca7f84bc2238566f29d10d32999725 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sun, 26 Jun 2022 05:28:55 -0700 Subject: [PATCH] Fix libunwind stubs --- {test/libc => libc}/runtime/unwind.c | 2 +- {test/libc => libc}/runtime/unwind.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename {test/libc => libc}/runtime/unwind.c (98%) rename {test/libc => libc}/runtime/unwind.h (86%) diff --git a/test/libc/runtime/unwind.c b/libc/runtime/unwind.c similarity index 98% rename from test/libc/runtime/unwind.c rename to libc/runtime/unwind.c index ebd6164bc..9f24dc2c4 100644 --- a/test/libc/runtime/unwind.c +++ b/libc/runtime/unwind.c @@ -16,7 +16,7 @@ │ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ -#include "test/libc/runtime/unwind.h" +#include "libc/runtime/unwind.h" // temporary stubs for libunwind diff --git a/test/libc/runtime/unwind.h b/libc/runtime/unwind.h similarity index 86% rename from test/libc/runtime/unwind.h rename to libc/runtime/unwind.h index d21568f79..43c6127d2 100644 --- a/test/libc/runtime/unwind.h +++ b/libc/runtime/unwind.h @@ -1,5 +1,5 @@ -#ifndef COSMOPOLITAN_TEST_LIBC_RUNTIME_UNWIND_H_ -#define COSMOPOLITAN_TEST_LIBC_RUNTIME_UNWIND_H_ +#ifndef COSMOPOLITAN_LIBC_RUNTIME_UNWIND_H_ +#define COSMOPOLITAN_LIBC_RUNTIME_UNWIND_H_ #define UNW_TDEP_CURSOR_LEN 127 @@ -39,4 +39,4 @@ void *_Unwind_FindEnclosingFunction(void *); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ -#endif /* COSMOPOLITAN_TEST_LIBC_RUNTIME_UNWIND_H_ */ +#endif /* COSMOPOLITAN_LIBC_RUNTIME_UNWIND_H_ */