summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>2005-01-19 16:39:47 +0000
committerfrueauf <frueauf@pkgsrc.org>2005-01-19 16:39:47 +0000
commit6412b63256a4f8b604ad529c5e0947ec9c49fa0d (patch)
tree314542a8de9e0828a42248a3046d66c5f27bede7
parent207151e5cf1105d9d998f5f489fff81259764975 (diff)
downloadpkgsrc-6412b63256a4f8b604ad529c5e0947ec9c49fa0d.tar.gz
Add patch for libnessus/share_fd.c to compile with gcc shipped with
NetBSD 1.5.4_ALPHA (missing __func__ definition).
-rw-r--r--security/nessus-libraries/distinfo3
-rw-r--r--security/nessus-libraries/patches/patch-ab17
2 files changed, 19 insertions, 1 deletions
diff --git a/security/nessus-libraries/distinfo b/security/nessus-libraries/distinfo
index 953d6fd15fb..f5d287c9b5e 100644
--- a/security/nessus-libraries/distinfo
+++ b/security/nessus-libraries/distinfo
@@ -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 --git a/security/nessus-libraries/patches/patch-ab b/security/nessus-libraries/patches/patch-ab
new file mode 100644
index 00000000000..9c7c9a2b5ff
--- /dev/null
+++ b/security/nessus-libraries/patches/patch-ab
@@ -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)