From a942603df7730eb7ed310f096b86fed3b9d852a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Mon, 14 Dec 2009 08:59:23 +0000 Subject: [PATCH] Only activate special trap code on x86 --- src/trap.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/trap.c b/src/trap.c index ed0fc677..fb651569 100644 --- a/src/trap.c +++ b/src/trap.c @@ -16,6 +16,12 @@ * along with this program. If not, see . */ +#include "trap.h" + +#if defined(__i386__) || defined(__x86_64__) + +// Only do this on x86 for now + #define _GNU_SOURCE #include #include @@ -28,7 +34,6 @@ #include -#include "trap.h" #include "tvhead.h" @@ -174,3 +179,11 @@ trap_init(const char *ver) free(binsum); } +#else + +void +trap_init(const char *ver) +{ + +} +#endif