blob: a4e8b08820253b55246db03527963406c991498a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|