pkgsrc/databases/mysql57-client/patches/patch-client_mysqladmin.cc
adam 7cb1f0a9d9 MySQL is a SQL (Structured Query Language) database server. SQL is the most
popular database language in the world. MySQL is a client-server implementation
that consists of a server daemon `mysqld' and many different client
programs/libraries.

The main goals of MySQL are speed and robustness.

The base upon which MySQL is built is a set of routines that have been used in
a highly demanding production environment for many years.  While MySQL is still
in development it already offers a rich and highly useful function set.
2016-09-16 06:49:11 +00:00

23 lines
744 B
C++

$NetBSD: patch-client_mysqladmin.cc,v 1.1 2016/09/16 06:49:11 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);