This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for variable page width in man


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]