diff options
author | Magne Mahre <magne.mahre@sun.com> | 2009-11-05 10:31:58 +0100 |
---|---|---|
committer | Magne Mahre <magne.mahre@sun.com> | 2009-11-05 10:31:58 +0100 |
commit | bda76437ae2bff206e53cbeca352651e361cd045 (patch) | |
tree | 5af2c4356ea878b8405ed5e7d50e9a7dcb7fffe1 /client | |
parent | a5ab2c30df0570a2601bb27e4c5649109f6c14a2 (diff) | |
download | mariadb-git-bda76437ae2bff206e53cbeca352651e361cd045.tar.gz |
Fix compile error on HP/UX.
SIGWINCH is not defined in termios.h on HP/UX.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 39ba7f10371..e538ed7df3a 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1069,7 +1069,7 @@ static void mysql_end_timer(ulong start_time,char *buff); static void nice_time(double sec,char *buff,bool part_second); extern "C" sig_handler mysql_end(int sig); extern "C" sig_handler handle_sigint(int sig); -#if defined(HAVE_TERMIOS_H) +#if defined(HAVE_TERMIOS_H) && defined(GWINSZ_IN_SYS_IOCTL) static sig_handler window_resize(int sig); #endif @@ -1165,7 +1165,7 @@ int main(int argc,char *argv[]) signal(SIGINT, handle_sigint); // Catch SIGINT to clean up signal(SIGQUIT, mysql_end); // Catch SIGQUIT to clean up -#if defined(HAVE_TERMIOS_H) +#if defined(HAVE_TERMIOS_H) && defined(GWINSZ_IN_SYS_IOCTL) /* Readline will call this if it installs a handler */ signal(SIGWINCH, window_resize); /* call the SIGWINCH handler to get the default term width */ @@ -1330,7 +1330,7 @@ err: } -#if defined(HAVE_TERMIOS_H) +#if defined(HAVE_TERMIOS_H) && defined(GWINSZ_IN_SYS_IOCTL) sig_handler window_resize(int sig) { struct winsize window_size; |