From 855ee71e180e8b67395d199d5cd8e3c7c7f6638d Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Tue, 17 Mar 2026 09:40:24 -0400 Subject: [PATCH] fix: stub out FreeRDP unwind/debug.c with empty implementations instead of deleting --- .gitea/workflows/build-release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-release.yml b/.gitea/workflows/build-release.yml index f00fb34..3f34b51 100644 --- a/.gitea/workflows/build-release.yml +++ b/.gitea/workflows/build-release.yml @@ -140,9 +140,14 @@ jobs: export CFLAGS="-w" export CXXFLAGS="-w" - # Remove unwind source — uses dlfcn.h which doesn't exist in MinGW - rm -rf winpr/libwinpr/utils/unwind - sed -i '/unwind/d' winpr/libwinpr/CMakeLists.txt 2>/dev/null || true + # Stub out unwind source — uses dlfcn.h which doesn't exist in MinGW + # Replace with empty implementations so cmake still finds the file + cat > winpr/libwinpr/utils/unwind/debug.c << 'STUBEOF' + #include + void* winpr_unwind_backtrace(void) { return NULL; } + char** winpr_unwind_backtrace_symbols(void* buffer, size_t* used) { *used = 0; return NULL; } + void winpr_unwind_backtrace_free(void* buffer) { } + STUBEOF cmake -B build -G Ninja \ -DCMAKE_TOOLCHAIN_FILE=/tmp/mingw-toolchain.cmake \