delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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 AT narod DOT ru> |
Reply-To: | ekot AT narod DOT ru |
Organization: | home |
User-Agent: | Mozilla Thunderbird 1.5.0.4d (Windows/20041206) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Patch for variable page width in man |
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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |