Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 67d199dbdcbb3feff5f8928f87725fc64c0307d7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 5 Jul 2017 17:36:42 -0700 |
| 4 | Subject: [PATCH 2/3] memcheck/x86: Define __THROW if not defined |
| 5 | |
| 6 | musl does not have __THROW, therefore make it null |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | Upstream-Status: Submitted |
| 11 | |
| 12 | memcheck/tests/x86-linux/scalar.h | 4 ++++ |
| 13 | 1 file changed, 4 insertions(+) |
| 14 | |
| 15 | diff --git a/memcheck/tests/x86-linux/scalar.h b/memcheck/tests/x86-linux/scalar.h |
| 16 | index ef28b03..52f742e 100644 |
| 17 | --- a/memcheck/tests/x86-linux/scalar.h |
| 18 | +++ b/memcheck/tests/x86-linux/scalar.h |
| 19 | @@ -11,6 +11,10 @@ |
| 20 | #include <sys/types.h> |
| 21 | #include <sys/mman.h> |
| 22 | |
| 23 | +#ifndef __THROW |
| 24 | +#define __THROW |
| 25 | +#endif |
| 26 | + |
| 27 | // Since we use vki_unistd.h, we can't include <unistd.h>. So we have to |
| 28 | // declare this ourselves. |
| 29 | extern long int syscall (long int __sysno, ...) __THROW; |
| 30 | -- |
| 31 | 2.13.2 |
| 32 | |