aports/testing/radare2/fix-arm-build.patch
2016-05-31 08:31:39 +00:00

26 lines
790 B
Diff

From 2d3a69b7a04ee56edaddb7963c02df4b31aae498 Mon Sep 17 00:00:00 2001
From: pancake <pancake@nopcode.org>
Date: Thu, 26 May 2016 12:29:24 +0200
Subject: [PATCH] Fix linux-arm build
---
libr/debug/p/native/linux/linux_coredump.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libr/debug/p/native/linux/linux_coredump.c b/libr/debug/p/native/linux/linux_coredump.c
index b364072..8d65851 100644
--- a/libr/debug/p/native/linux/linux_coredump.c
+++ b/libr/debug/p/native/linux/linux_coredump.c
@@ -1,5 +1,6 @@
/* radare - LGPL - Copyright 2016 - Oscar Salvador */
+#if __x86_64__
#include <r_debug.h>
#include <sys/uio.h>
#include <sys/ptrace.h>
@@ -1242,3 +1243,4 @@ bool linux_generate_corefile (RDebug *dbg, RBuffer *dest) {
free (shdr_pxnum);
return !error;
}
+#endif