summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/0002-memcheck-x86-Define-__THROW-if-not-defined.patch
blob: 5433472291ecec9c41a6bc084423abd10553adfe (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
26
27
28
29
30
31
32
From 67d199dbdcbb3feff5f8928f87725fc64c0307d7 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 5 Jul 2017 17:36:42 -0700
Subject: [PATCH 2/3] memcheck/x86: Define __THROW if not defined

musl does not have __THROW, therefore make it null

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Submitted

 memcheck/tests/x86-linux/scalar.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/memcheck/tests/x86-linux/scalar.h b/memcheck/tests/x86-linux/scalar.h
index ef28b03..52f742e 100644
--- a/memcheck/tests/x86-linux/scalar.h
+++ b/memcheck/tests/x86-linux/scalar.h
@@ -11,6 +11,10 @@
 #include <sys/types.h>
 #include <sys/mman.h>
 
+#ifndef __THROW
+#define __THROW
+#endif
+
 // Since we use vki_unistd.h, we can't include <unistd.h>.  So we have to
 // declare this ourselves.
 extern long int syscall (long int __sysno, ...) __THROW;
-- 
2.13.2