summaryrefslogtreecommitdiff
path: root/databases/mysql4-client/patches/patch-bc
blob: c1d2aacb4482306b0b6b3b79e879565ea65e0d15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);