Re: Patch to enable window size detection code of psql for Solaris platform - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Patch to enable window size detection code of psql for Solaris platform
Date
Msg-id 200108011845.f71IjCA06751@candle.pha.pa.us
Whole thread Raw
In response to Patch to enable window size detection code of psql for Solaris platform  (Kenji Sugita <sugita@sra.co.jp>)
List pgsql-patches
Thanks.  Patch applied.

>
> Attached ia a patch to enable window size detection code of psql for Solaris
> platform.
>
> ====  Patch to src/bin/psql/print.c  ===========================
> *** /tmp/T0gZai3g    Mon Jul 30 16:42:01 2001
> --- print.c    Thu Jul 26 14:15:44 2001
> ***************
> *** 29,34 ****
> --- 29,37 ----
>   #define DEFAULT_PAGER "less"
>   #endif
>
> + #ifdef HAVE_TERMIOS_H
> + #include <termios.h>
> + #endif
>
>
>   /*************************/
> ================================================================
>
> 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.
>
>
> Kind regards,
>
>
> Kenji Sugita
> sugita@sra.co.jp
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Neil Padgett
Date:
Subject: Patch for Improved Syntax Error Reporting
Next
From: Bruce Momjian
Date:
Subject: Re: Patch to contrib/fulltextindex/fti.sql