diff options
Diffstat (limited to 'databases/mysql4-client/patches/patch-ba')
-rw-r--r-- | databases/mysql4-client/patches/patch-ba | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/databases/mysql4-client/patches/patch-ba b/databases/mysql4-client/patches/patch-ba new file mode 100644 index 00000000000..a4e8b088202 --- /dev/null +++ b/databases/mysql4-client/patches/patch-ba @@ -0,0 +1,30 @@ +$NetBSD: patch-ba,v 1.1 2005/02/18 00:48:05 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 |