Skip site navigation (1) Skip section navigation (2)

Re: Patch to enable window size detection code of psql for Solaris platform

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: sugita(at)sra(dot)co(dot)jp
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch to enable window size detection code of psql for Solaris platform
Date: 2001-07-30 14:46:20
Message-ID: 200107301446.f6UEkKK00204@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Your patch has been added to the PostgreSQL unapplied patches list at:

	http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

> 
> 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(at)sra(dot)co(dot)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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-07-30 14:51:24
Subject: Re: [PATCHES] Merging JDBC1 and JDBC2 similarities
Previous:From: Bruce MomjianDate: 2001-07-30 14:45:45
Subject: Re: Patch to contrib/fulltextindex/fti.sql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group