fix musl build

This commit is contained in:
Gregory LEOCADIE
2024-10-27 14:15:35 +01:00
committed by Stephen M. Webb
parent 0117edf108
commit 3e72728f4f
2 changed files with 2 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ AC_CHECK_HEADERS(asm/ptrace_offsets.h asm/ptrace.h asm/vsyscall.h endian.h sys/e
dnl Set target-specific compile flags
AS_CASE([$target_os],
[*-gnu|*-gnueabi*], [UNW_TARGET_CPPFLAGS="-D_GNU_SOURCE"],
[*-gnu|*-gnueabi*|*-musl], [UNW_TARGET_CPPFLAGS="-D_GNU_SOURCE"],
[solaris*], [UNW_TARGET_CPPFLAGS="-D__EXTENSIONS__"]
)
AC_SUBST([UNW_TARGET_CPPFLAGS])

View File

@@ -27,14 +27,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h"
#ifdef UNW_LOCAL_ONLY
#define LOCAL_UNUSED UNUSED
#else
#define LOCAL_UNUSED
#endif
unw_addr_space_t
unw_create_addr_space (unw_accessors_t *a LOCAL_UNUSED, int byte_order LOCAL_UNUSED)
unw_create_addr_space (unw_accessors_t *a, int byte_order)
{
#ifdef UNW_LOCAL_ONLY
return NULL;