-The man implementation from mandoc does not adjust its output size to the terminal. As this is nice to have on smaller screens such as Termux we patch this in using the following patch adapted from
-
-https://groups.google.com/forum/#!topic/fa.openbsd.tech/AEDMaZmzSU4
-
-diff -u -r ../mdocml-1.13.4/term_ascii.c ./term_ascii.c
---- ../mdocml-1.13.4/term_ascii.c 2016-07-14 07:13:40.000000000 -0400
-+++ ./term_ascii.c 2016-09-26 18:06:08.339737451 -0400
-@@ -18,6 +18,7 @@
+diff -u -r ../mdocml-1.14.1/term_ascii.c ./term_ascii.c
+--- ../mdocml-1.14.1/term_ascii.c 2017-02-21 00:25:20.000000000 +0000
++++ ./term_ascii.c 2017-03-02 14:04:37.164590198 +0000
+@@ -18,8 +18,10 @@
#include "config.h"
#include <sys/types.h>
+#include <sys/ioctl.h>
#include <assert.h>
++#include <fcntl.h>
#if HAVE_WCHAR
-@@ -64,12 +65,22 @@
+ #include <locale.h>
+ #endif
+@@ -64,12 +66,22 @@
char *v;
#endif
struct termp *p;