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