summaryrefslogtreecommitdiff
path: root/src/bin/psql/print.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-08-01 18:44:54 +0000
committerBruce Momjian <bruce@momjian.us>2001-08-01 18:44:54 +0000
commitea72cc4e111166905c17289cb78d39571b3cb59b (patch)
treec3a5e6e5c1cc74f844bbf5800572cc70af298ef2 /src/bin/psql/print.c
parent938236a29716c754a9a9238e377c3cd15db11dde (diff)
Attached ia a patch to enable window size detection code of psql for Solaris
platform. TIOCGWINSZ is defined as follows: Linux asm/ioctls.h FreeBSD sys/ttycom.h. This file is included by sys/ioctl.h. Solaris sys/termios.h This patch tells print.c to know TIOCGWINSZ on Solaris platform. Same code is founded in src/bin/psal/common.c. Kenji Sugita
Diffstat (limited to 'src/bin/psql/print.c')
-rw-r--r--src/bin/psql/print.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index 9b89b5c5e39..7b00657d6c2 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.20 2001/06/02 18:25:18 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.21 2001/08/01 18:44:54 momjian Exp $
*/
#include "postgres_fe.h"
#include "print.h"
@@ -29,6 +29,9 @@
#define DEFAULT_PAGER "less"
#endif
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
/*************************/