pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/error Fix incorrect declaration for strl* and av...
details: https://anonhg.NetBSD.org/pkgsrc/rev/abb3e295d0d8
branches: trunk
changeset: 495806:abb3e295d0d8
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Jun 21 21:02:16 2005 +0000
description:
Fix incorrect declaration for strl* and avoid re-defining CPP macros.
This fixes compiler warnings and lets this build with -Werror. This
fixes the build on NetBSD.
Commit approved during the deep freeze by <agc>.
diffstat:
devel/error/distinfo | 5 ++++-
devel/error/patches/patch-aa | 12 ++++++++++++
devel/error/patches/patch-ab | 12 ++++++++++++
devel/error/patches/patch-ac | 12 ++++++++++++
4 files changed, 40 insertions(+), 1 deletions(-)
diffs (61 lines):
diff -r 4fbf9d9a473c -r abb3e295d0d8 devel/error/distinfo
--- a/devel/error/distinfo Tue Jun 21 18:56:13 2005 +0000
+++ b/devel/error/distinfo Tue Jun 21 21:02:16 2005 +0000
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.1 2005/05/10 21:02:42 christos Exp $
+$NetBSD: distinfo,v 1.2 2005/06/21 21:02:16 jlam Exp $
SHA1 (error-0.0.tar.gz) = b791825e6864e9459401d2bc780521a7411f1ce2
RMD160 (error-0.0.tar.gz) = 8546498a08045c44eb1a5693447954640d2bf9e4
Size (error-0.0.tar.gz) = 25818 bytes
+SHA1 (patch-aa) = 8a5addfb206d969b8cf5d2ff8b1505f28d499f02
+SHA1 (patch-ab) = bb50e813ff1730d79d87b629144674795cae58f2
+SHA1 (patch-ac) = d53fd3b4c241bfc254e21d1ab9abaa99712ba404
diff -r 4fbf9d9a473c -r abb3e295d0d8 devel/error/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/error/patches/patch-aa Tue Jun 21 21:02:16 2005 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1 2005/06/21 21:02:16 jlam Exp $
+
+--- error.h.orig 2005-05-10 16:48:24.000000000 -0400
++++ error.h
+@@ -248,5 +248,5 @@ char **wordvsplice(int, int, char **);
+ boolean writetouched(int);
+
+ extern char *fgetln(FILE *, size_t*);
+-extern ssize_t strlcpy(char *, const char *, size_t);
+-extern ssize_t strlcat(char *, const char *, size_t);
++extern size_t strlcpy(char *, const char *, size_t);
++extern size_t strlcat(char *, const char *, size_t);
diff -r 4fbf9d9a473c -r abb3e295d0d8 devel/error/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/error/patches/patch-ab Tue Jun 21 21:02:16 2005 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2005/06/21 21:02:16 jlam Exp $
+
+--- strlcat.c.orig 2005-05-10 16:48:24.000000000 -0400
++++ strlcat.c
+@@ -35,6 +35,7 @@ __RCSID("$NetBSD: strlcat.c,v 1.16 2003/
+
+ size_t
+ strlcat(char *dst, const char *src, size_t siz);
++#undef _DIAGASSERT
+ #define _DIAGASSERT(a)
+
+ #ifdef _LIBC
diff -r 4fbf9d9a473c -r abb3e295d0d8 devel/error/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/error/patches/patch-ac Tue Jun 21 21:02:16 2005 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1 2005/06/21 21:02:16 jlam Exp $
+
+--- strlcpy.c.orig 2005-05-10 16:48:24.000000000 -0400
++++ strlcpy.c
+@@ -34,6 +34,7 @@ __RCSID("$NetBSD: strlcpy.c,v 1.14 2003/
+ #include <string.h>
+ size_t
+ strlcpy(char *dst, const char *src, size_t siz);
++#undef _DIAGASSERT
+ #define _DIAGASSERT(a)
+
+ #ifdef _LIBC
Home |
Main Index |
Thread Index |
Old Index