$NetBSD: patch-ba,v 1.4 2008/03/26 13:22:00 wiz Exp $

--- client/mysql.cc.orig	2006-11-03 04:15:47.000000000 +0200
+++ client/mysql.cc	2007-05-23 08:25:23.000000000 +0300
@@ -39,6 +39,9 @@
 #include "my_readline.h"
 #include <signal.h>
 #include <violite.h>
+#ifdef NEEDS_BSTRING_H              // defines bzero()
+#include <bstring.h>
+#endif
 
 #if defined(USE_LIBEDIT_INTERFACE) && defined(HAVE_LOCALE_H)
 #include <locale.h>
@@ -410,8 +413,13 @@
   if (opt_sigint_ignore)
     signal(SIGINT, SIG_IGN);
   else
-    signal(SIGINT, mysql_end);			// Catch SIGINT to clean up
-  signal(SIGQUIT, mysql_end);			// Catch SIGQUIT to clean up
+#ifdef IRIX5
+#define _MYSQL_END_TYPE (void (*)(...))
+#else
+#define _MYSQL_END_TYPE
+#endif
+	signal(SIGINT, _MYSQL_END_TYPE mysql_end); // Catch SIGINT to clean up
+    signal(SIGQUIT, _MYSQL_END_TYPE mysql_end);  // Catch SIGQUIT to clean up
 
   /*
     Run in interactive mode like the ingres/postgres monitor
