Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ea72cc4

Browse files
committed
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
1 parent 938236a commit ea72cc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/psql/print.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.20 2001/06/02 18:25:18 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.21 2001/08/01 18:44:54 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "print.h"
@@ -29,6 +29,9 @@
2929
#define DEFAULT_PAGER "less"
3030
#endif
3131

32+
#ifdef HAVE_TERMIOS_H
33+
#include <termios.h>
34+
#endif
3235

3336

3437
/*************************/

0 commit comments

Comments
 (0)