Subject: Patch for variable page width in man
From: Eugene Kotlyarov <[email-masked]>
To: [email-masked]
Date: Mon, 07 Mar 2005 15:58:27 +0300

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.
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

--
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/