$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)
