$NetBSD: patch-ah,v 1.1.1.1 2005/10/31 09:21:40 xtraeme Exp $

--- client/mysql.cc.orig	2005-02-18 01:36:23.000000000 +0100
+++ client/mysql.cc	2005-02-18 01:38:00.000000000 +0100
@@ -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>
@@ -408,8 +411,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
