aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radare2/fix-arm-build.patch
blob: 3586751f76c7760b9f35d7c3d508d1bac0cf9c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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