void-packages/srcpkgs/valgrind/patches/throw.patch

35 lines
1.2 KiB
Diff

--- a/memcheck/tests/arm64-linux/scalar.h 2021-01-21 15:09:33.000000000 +0000
+++ b/memcheck/tests/arm64-linux/scalar.h 2021-11-16 20:56:18.980008699 +0000
@@ -14,7 +14,13 @@
// 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;
+#ifdef __THROW
+#define THROW __THROW
+#else
+#define THROW
+#endif
+extern long int syscall (long int __sysno, ...) THROW;
+#undef THROW
// Thorough syscall scalar arg checking. Also serves as thorough checking
// for (very) basic syscall use. Generally not trying to do anything
--- a/memcheck/tests/x86-linux/scalar.h 2021-01-21 15:09:33.000000000 +0000
+++ b/memcheck/tests/x86-linux/scalar.h 2021-11-16 20:55:24.890008673 +0000
@@ -14,7 +14,13 @@
// 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;
+#ifdef __THROW
+#define THROW __THROW
+#else
+#define THROW
+#endif
+extern long int syscall (long int __sysno, ...) THROW;
+#undef THROW
// Thorough syscall scalar arg checking. Also serves as thorough checking
// for (very) basic syscall use. Generally not trying to do anything