From 090a8765d141ee1dfb67ddaf3814de10dde9b6ba Mon Sep 17 00:00:00 2001 From: jschauma Date: Wed, 31 Aug 2005 19:08:21 +0000 Subject: Allow splint to actually work under NetBSD by applying patch from FreeBSD (PR ports/61131). --- devel/splint/distinfo | 3 ++- devel/splint/patches/patch-ab | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 devel/splint/patches/patch-ab (limited to 'devel/splint') diff --git a/devel/splint/distinfo b/devel/splint/distinfo index 30afc38290b..b56f24e4abc 100644 --- a/devel/splint/distinfo +++ b/devel/splint/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2005/05/31 19:01:39 rillig Exp $ +$NetBSD: distinfo,v 1.5 2005/08/31 19:08:21 jschauma Exp $ SHA1 (splint-3.1.1.src.tgz) = 1192e8f18e8ef63fdc7a0b0fa26c35b46d59e4e6 RMD160 (splint-3.1.1.src.tgz) = 8a0d04b20ccdfd50f99e3ef6abd59e7b25814912 Size (splint-3.1.1.src.tgz) = 2425108 bytes SHA1 (patch-aa) = 44355d0f1d589928faac22e9b8f1355e13e93230 +SHA1 (patch-ab) = 96c5f10adce1cc1442a55aa4aa9769ca1b0b285e diff --git a/devel/splint/patches/patch-ab b/devel/splint/patches/patch-ab new file mode 100644 index 00000000000..4aeb5cae11d --- /dev/null +++ b/devel/splint/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2005/08/31 19:08:21 jschauma Exp $ + +--- src/cpplib.c.orig 2005-08-31 15:04:07.000000000 -0400 ++++ src/cpplib.c 2005-08-31 15:04:30.000000000 -0400 +@@ -2828,7 +2828,7 @@ + else if (hp->type == T_CONST) + ok = !CPPOPTIONS (pfile)->done_initializing; + else { +- BADBRANCH; ++ ok = FALSE; /* Redefining anything else is bad. */ + } + + /* Print the warning if it's not ok. */ -- cgit v1.2.3