-/* $Id: main.c,v 1.202 2014/12/05 21:55:04 schwarze Exp $ */
+/* $Id: main.c,v 1.203 2014/12/09 07:29:42 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
};
static int koptions(int *, char *);
+#if HAVE_SQLITE3
+int mandocdb(int, char**);
+#endif
static int moptions(int *, char *);
static void mmsg(enum mandocerr, enum mandoclevel,
const char *, int, int, const char *);
else
++progname;
+#if HAVE_SQLITE3
+ if (0 == strncmp(progname, "mandocdb", 8) ||
+ 0 == strncmp(progname, "makewhatis", 10))
+ return(mandocdb(argc, argv));
+#endif
+
/* Search options. */
memset(&paths, 0, sizeof(struct manpaths));