diff --git a/utils/mandoc/patches/020-gcc10.patch b/utils/mandoc/patches/020-gcc10.patch
new file mode 100644
index 000000000..fc7232452
--- /dev/null
+++ b/utils/mandoc/patches/020-gcc10.patch
@@ -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
+