Unwinding is only supported on Linux

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
diff --git a/tests/backtrace.c b/tests/backtrace.c
index 758dfed..1a4709b 100644
--- a/tests/backtrace.c
+++ b/tests/backtrace.c
@@ -38,6 +38,18 @@
 #include <argp.h>
 #include ELFUTILS_HEADER(dwfl)
 
+#ifndef __linux__
+
+int
+main (int argc __attribute__ ((unused)), char **argv)
+{
+  fprintf (stderr, "%s: Unwinding not supported for this architecture\n",
+	   argv[0]);
+  return 77;
+}
+
+#else /* __linux__ */
+
 static int
 dump_modules (Dwfl_Module *mod, void **userdata __attribute__ ((unused)),
 	      const char *name, Dwarf_Addr start,
@@ -451,3 +463,6 @@
   dwfl_end (dwfl);
   return 0;
 }
+
+#endif /* ! __linux__ */
+