Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea72cc4

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.hThis patch tells print.c to know TIOCGWINSZ on Solaris platform. Same code isfounded in src/bin/psal/common.c.Kenji Sugita
1 parent938236a commitea72cc4

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
#defineDEFAULT_PAGER "less"
3030
#endif
3131

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

3336

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp