Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Comment: RFC 2476 MSA function at mx14.yandex.ru logged sender identity as: ekot
Message-ID: <422C4FF3.4070301@narod.ru>
Date: 	Mon, 07 Mar 2005 15:58:27 +0300
From: Eugene Kotlyarov <ekot@narod.ru>
Reply-To: ekot@narod.ru
Organization: home
User-Agent: Mozilla Thunderbird 1.5.0.4d (Windows/20041206)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Patch for variable page width in man
Content-Type: multipart/mixed; boundary="------------050805000009040508080106"
X-IsSubscribed: yes

--------------050805000009040508080106
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

Hello

   I've made small patch for man with which it uses screen width when 
displaying man pages. Also there seems to be missing build dependency in 
readme for lndir which is in xorg-x11-bin-lndir package.

--------------050805000009040508080106
Content-Type: text/plain;
 name="manwidth.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="manwidth.patch"

diff -upr man-1.5o1/configure man-1.5o1-patched/configure
--- man-1.5o1/configure	2005-03-07 14:50:28.921875000 +0300
+++ man-1.5o1-patched/configure	2005-03-07 14:29:29.031250000 +0300
@@ -229,6 +229,15 @@ if test -s conftest && ./conftest 2>/dev
 fi
 rm -f conftest conftest.c
 
+echo checking for sys/termios.h
+echo "#include <sys/termios.h>
+main() { exit(0); }" > conftest.c
+eval $compile
+if test -s conftest && ./conftest 2>/dev/null; then
+  DEFS="$DEFS -DTERMIOS_HEADER"
+fi
+rm -f conftest conftest.c
+
 echo checking for POSIX.1 header files
 echo "#include <unistd.h>
 main() {
diff -upr man-1.5o1/src/man.c man-1.5o1-patched/src/man.c
--- man-1.5o1/src/man.c	2005-03-07 14:50:29.000000000 +0300
+++ man-1.5o1-patched/src/man.c	2005-03-07 14:29:40.875000000 +0300
@@ -30,6 +30,9 @@
 #include <errno.h>
 #include <unistd.h>
 #include <locale.h>
+#ifdef TERMIOS_HEADER
+#include <sys/termios.h>
+#endif
 
 #ifndef R_OK
 #define R_OK 4


--------------050805000009040508080106
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------050805000009040508080106--
