diff options
author | rillig <rillig@pkgsrc.org> | 2020-05-13 06:01:52 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-05-13 06:01:52 +0000 |
commit | 5112efa4ee9795151d1ecff162018ac1bcad8a94 (patch) | |
tree | 64bc4235de063235a096a3b18a21ab12cee63c15 /lang | |
parent | ac07f4d1678c4f5f2e52d9f2cd3a5bbe521b0c91 (diff) | |
download | pkgsrc-5112efa4ee9795151d1ecff162018ac1bcad8a94.tar.gz |
lang/oo2c: fix build on NetBSD 8.0
Diffstat (limited to 'lang')
-rw-r--r-- | lang/oo2c/distinfo | 3 | ||||
-rw-r--r-- | lang/oo2c/patches/patch-lib_src_Exception_c | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lang/oo2c/distinfo b/lang/oo2c/distinfo index 9288f02449a..09b18a38a1b 100644 --- a/lang/oo2c/distinfo +++ b/lang/oo2c/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2019/04/27 11:33:03 wiz Exp $ +$NetBSD: distinfo,v 1.12 2020/05/13 06:01:52 rillig Exp $ SHA1 (oo2c_32-2.0.11.tar.bz2) = b8962b7fdf9505dc1769602ade44d8e56eda8d45 RMD160 (oo2c_32-2.0.11.tar.bz2) = c51dc82ec09c9d2f82cb1f10ee7814b3cce38502 @@ -13,3 +13,4 @@ SHA1 (patch-aa) = 2653852548475f5eab7b5b88703ec356e9eeb5a0 SHA1 (patch-ab) = 246c0edabfefac3406dbce46baee4ddd8c90f2fe SHA1 (patch-ac) = d31a5920d189a0201f10fc0526330c903ae0abc5 SHA1 (patch-ad) = ff9564734be4774d1b57edfdc349c860f5063b55 +SHA1 (patch-lib_src_Exception_c) = e90c3b99177cca94183791517e174a87e8af6efc diff --git a/lang/oo2c/patches/patch-lib_src_Exception_c b/lang/oo2c/patches/patch-lib_src_Exception_c new file mode 100644 index 00000000000..0972a571198 --- /dev/null +++ b/lang/oo2c/patches/patch-lib_src_Exception_c @@ -0,0 +1,19 @@ +$NetBSD: patch-lib_src_Exception_c,v 1.1 2020/05/13 06:01:52 rillig Exp $ + +Trying to build 2.0.11 on NetBSD 8.0 x86_64: +> ./lib/src/Exception.c:32:13: warning: implicit declaration of function 'strlen' +> int len = strlen(td->name); +> +> lib/src/__libc.h:24:14: error: expected declaration specifiers or '...' before numeric constant +> extern void* memcpy(void* dest, const void* src, __typeof__(sizeof(int)) n); + +--- lib/src/Exception.c.orig 2003-08-01 15:17:27.000000000 +0000 ++++ lib/src/Exception.c +@@ -4,6 +4,7 @@ + #include <setjmp.h> + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #if HAVE_BACKTRACE_SYMBOLS + # include <execinfo.h> + #endif |