mirror of
https://github.com/libunwind/libunwind.git
synced 2026-01-12 00:04:03 +08:00
fix musl build
This commit is contained in:
committed by
Stephen M. Webb
parent
0117edf108
commit
3e72728f4f
@@ -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])
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user