summaryrefslogtreecommitdiff
path: root/databases/mysql4-client/patches/patch-bc
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql4-client/patches/patch-bc')
-rw-r--r--databases/mysql4-client/patches/patch-bc21
1 files changed, 21 insertions, 0 deletions
diff --git a/databases/mysql4-client/patches/patch-bc b/databases/mysql4-client/patches/patch-bc
new file mode 100644
index 00000000000..c1d2aacb448
--- /dev/null
+++ b/databases/mysql4-client/patches/patch-bc
@@ -0,0 +1,21 @@
+$NetBSD: patch-bc,v 1.1 2005/02/18 00:48:05 xtraeme Exp $
+
+--- client/mysqladmin.cc.orig 2005-02-18 01:39:09.000000000 +0100
++++ client/mysqladmin.cc 2005-02-18 01:40:21.000000000 +0100
+@@ -326,8 +326,14 @@
+ if (tty_password)
+ opt_password = get_tty_password(NullS);
+
+- VOID(signal(SIGINT,endprog)); /* Here if abort */
+- VOID(signal(SIGTERM,endprog)); /* Here if abort */
++#ifdef IRIX5
++#define _MYSQL_END_TYPE (void (*)(...))
++#else
++#define _MYSQL_END_TYPE
++#endif
++
++ VOID(signal(SIGINT,_MYSQL_END_TYPE endprog)); /* Here if abort */
++ VOID(signal(SIGTERM,_MYSQL_END_TYPE endprog));/* Here if abort */
+
+ if (opt_compress)
+ mysql_options(&mysql,MYSQL_OPT_COMPRESS,NullS);