$NetBSD: patch-ai,v 1.1.1.1 2001/05/30 11:45:41 agc Exp $

--- table.c.orig	Mon May 28 12:22:42 2001
+++ table.c	Mon May 28 13:02:59 2001
@@ -25,6 +25,7 @@
 #include "tablems.h"
 #include "tableme.h"
 #include "tablemm.h"
+#include "tablemandoc.h"
 
 char indexmacro[] = ".de iX \n.tm \\\\$1   \\\\n%\n..\n";
 char trquotes[] = ".tr \\(is'\n.tr \\(if`\n.tr \\(pd\"\n";
@@ -38,7 +39,7 @@
 int showInfo;
 int makeindex;
 {
-    extern void patchtable();
+    static void patchtable();
     int tablesize;
 
     switch (macropkg) {
@@ -56,6 +57,11 @@
 	table = metable;
 	tablesize = sizeof metable;
 	cmds = &mecmds;
+	break;
+    case MANDOC:
+	table = mandoctable;
+	tablesize = sizeof mandoctable;
+	cmds = &mandoccmds;
 	break;
     }
     endoftable = table + tablesize/sizeof table[0];
