summaryrefslogtreecommitdiff
path: root/devel/sfslite/patches
diff options
context:
space:
mode:
Diffstat (limited to 'devel/sfslite/patches')
-rw-r--r--devel/sfslite/patches/patch-aa15
-rw-r--r--devel/sfslite/patches/patch-ab24
-rw-r--r--devel/sfslite/patches/patch-ac23
3 files changed, 62 insertions, 0 deletions
diff --git a/devel/sfslite/patches/patch-aa b/devel/sfslite/patches/patch-aa
new file mode 100644
index 00000000000..c93ed1164b5
--- /dev/null
+++ b/devel/sfslite/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2012/05/07 07:25:55 agc Exp $
+
+Old C++ warning
+
+--- async/myaddrs.C 2012/03/28 12:41:30 1.1
++++ async/myaddrs.C 2012/03/28 12:42:18
+@@ -74,7 +74,7 @@
+ res->clear ();
+ bhash<in_addr> addrs;
+
+- p = ifc.ifc_buf;
++ p = (char *)(void *)ifc.ifc_buf;
+ e = p + ifc.ifc_len;
+ while (p < e) {
+ struct ifreq *ifrp = (struct ifreq *) p;
diff --git a/devel/sfslite/patches/patch-ab b/devel/sfslite/patches/patch-ab
new file mode 100644
index 00000000000..3d0b4ccc9de
--- /dev/null
+++ b/devel/sfslite/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2012/05/07 07:25:55 agc Exp $
+
+use the correct function without ambiguous details
+
+--- rpcc/genheader.C 2012/03/28 12:43:45 1.1
++++ rpcc/genheader.C 2012/03/28 12:45:10
+@@ -351,7 +351,7 @@
+ }
+
+ static str
+-tolower (const str &in)
++sfslitetolower (const str &in)
+ {
+ strbuf r;
+ for (const char *c = in.cstr (); *c; c++) {
+@@ -505,7 +505,7 @@
+ dump_tmpl_proc (const rpc_proc *rc)
+ {
+ str arg, res;
+- str fn = tolower (rc->id);
++ str fn = sfslitetolower (rc->id);
+ if (rc->arg != "void") arg = rc->arg;
+ if (rc->res != "void") res = rc->res;
+ str spc = " ";
diff --git a/devel/sfslite/patches/patch-ac b/devel/sfslite/patches/patch-ac
new file mode 100644
index 00000000000..224e0e2d39e
--- /dev/null
+++ b/devel/sfslite/patches/patch-ac
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1.1.1 2012/05/07 07:25:55 agc Exp $
+
+Don't try to be clever when including gmp.h - it has all the smarts
+in it for C++ and C linkage
+
+--- crypt/bigint.h 2012/03/28 12:57:51 1.1
++++ crypt/bigint.h 2012/03/28 12:58:32
+@@ -27,15 +27,7 @@
+
+ #include "sysconf.h"
+
+-#if defined (HAVE_GMP_CXX_OPS) || !defined (__cplusplus)
+ #include <gmp.h>
+-#else /* !HAVE_GMP_CXX_OPS */
+-/* Some older C++ header files fail to include some declarations
+- * inside an extern "C". */
+-extern "C" {
+-#include <gmp.h>
+-}
+-#endif /* !HAVE_GMP_CXX_OPS */
+
+ #ifdef __cplusplus
+ extern "C" {