23 lines
744 B
C++
23 lines
744 B
C++
$NetBSD: patch-client_mysqladmin.cc,v 1.1 2013/02/13 21:00:03 adam Exp $
|
|
|
|
Redefine signals for Irix.
|
|
|
|
--- client/mysqladmin.cc.orig 2013-01-22 16:54:50.000000000 +0000
|
|
+++ client/mysqladmin.cc
|
|
@@ -344,8 +344,14 @@ int main(int argc,char *argv[])
|
|
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_bind_addr)
|
|
mysql_options(&mysql,MYSQL_OPT_BIND,opt_bind_addr);
|