From 02cefdaa6429e620d6457fdb3ad9934f194c5a93 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Tue, 22 Apr 2014 21:46:22 +0200 Subject: Unwinding is only supported on Linux Signed-off-by: Kurt Roeckx --- tests/backtrace-data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/backtrace-data.c') diff --git a/tests/backtrace-data.c b/tests/backtrace-data.c index dd74160a..01c1c004 100644 --- a/tests/backtrace-data.c +++ b/tests/backtrace-data.c @@ -40,7 +40,7 @@ #include #include ELFUTILS_HEADER(dwfl) -#ifndef __x86_64__ +#if !defined(__x86_64__) || !defined(__linux__) int main (int argc __attribute__ ((unused)), char **argv) @@ -50,7 +50,7 @@ main (int argc __attribute__ ((unused)), char **argv) return 77; } -#else /* __x86_64__ */ +#else /* __x86_64__ && __linux__ */ /* The only arch specific code is set_initial_registers. */ -- cgit v1.2.3