mandoc: fix compilation with GCC10
authorRosen Penev <rosenp@gmail.com>
Tue, 16 Mar 2021 04:13:37 +0000 (21:13 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 21 Mar 2021 17:30:20 +0000 (10:30 -0700)
This is probably fixed in CVS. Unfortunately, I have no idea how to
import such a patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/mandoc/patches/020-gcc10.patch [new file with mode: 0644]

diff --git a/utils/mandoc/patches/020-gcc10.patch b/utils/mandoc/patches/020-gcc10.patch
new file mode 100644 (file)
index 0000000..fc72324
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/compat_getline.c
++++ b/compat_getline.c
+@@ -2,7 +2,7 @@
+ #if HAVE_GETLINE
+-int dummy;
++extern int dummy;
+ #else