pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/nessus-libraries Add patch for libnessus/shar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/59f62920edaf
branches:  trunk
changeset: 487753:59f62920edaf
user:      frueauf <frueauf%pkgsrc.org@localhost>
date:      Wed Jan 19 16:39:47 2005 +0000

description:
Add patch for libnessus/share_fd.c to compile with gcc shipped with
NetBSD 1.5.4_ALPHA (missing __func__ definition).

diffstat:

 security/nessus-libraries/distinfo         |   3 ++-
 security/nessus-libraries/patches/patch-ab |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 64673c0dfd80 -r 59f62920edaf security/nessus-libraries/distinfo
--- a/security/nessus-libraries/distinfo        Wed Jan 19 16:33:55 2005 +0000
+++ b/security/nessus-libraries/distinfo        Wed Jan 19 16:39:47 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.18 2005/01/11 12:03:27 adam Exp $
+$NetBSD: distinfo,v 1.19 2005/01/19 16:39:47 frueauf Exp $
 
 SHA1 (nessus-libraries-2.2.2a.tar.gz) = 761920d04547e870d0eaaa453331a2ab2b1c2953
 Size (nessus-libraries-2.2.2a.tar.gz) = 423965 bytes
 SHA1 (patch-aa) = c525abf1ccfe4c3921609b91e335fa19b0bcab87
+SHA1 (patch-ab) = 982846ca823fb9f83b2d670f61f78b3b61f6d704
 SHA1 (patch-ac) = ec174bd6ddb7303f53a5e474451ad0f306575682
diff -r 64673c0dfd80 -r 59f62920edaf security/nessus-libraries/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/nessus-libraries/patches/patch-ab        Wed Jan 19 16:39:47 2005 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.4 2005/01/19 16:39:47 frueauf Exp $
+
+--- libnessus/share_fd.c-orig  Wed Oct 13 01:53:41 2004
++++ libnessus/share_fd.c       Wed Jan 19 17:31:52 2005
+@@ -96,6 +96,12 @@
+       msg.msg_controllen = sizeof(tmp);
+ #endif
+ 
++
++#if !(__STDC_VERSION__ >= 199901L)
++#if __GNUC_PREREQ__(2, 4)
++#define __func__      __FUNCTION__
++#endif
++#endif /* !(__STDC_VERSION__ >= 199901L) */
+       if ((n = recvmsg(socket, &msg, 0)) == -1)
+               printf("%s: recvmsg: %s", __func__, strerror(errno));
+       if (n != 1)



Home | Main Index | Thread Index | Old Index