summaryrefslogtreecommitdiffstatshomepage
path: root/mdocterm.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-23 12:45:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-23 12:45:19 +0000
commit87afbc0e736c0c51230aed2a74f1f10684872d7e (patch)
tree6a17424d1de64387a59166cd7ba593b96bb279b0 /mdocterm.c
parent7f0efa8fae853b8421869bf16da3d57b9b4d0da0 (diff)
downloadmandoc-87afbc0e736c0c51230aed2a74f1f10684872d7e.tar.gz
mandoc-87afbc0e736c0c51230aed2a74f1f10684872d7e.tar.zst
mandoc-87afbc0e736c0c51230aed2a74f1f10684872d7e.zip
More in-file documentation and Linux-isation.
Moved mdoc_macros table definition into macro.c, where it belongs.
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 46451789..8e5f15d6 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -1,4 +1,4 @@
- /* $Id: mdocterm.c,v 1.4 2009/02/23 09:33:34 kristaps Exp $ */
+ /* $Id: mdocterm.c,v 1.5 2009/02/23 12:45:19 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -24,6 +24,10 @@
#include <stdlib.h>
#include <string.h>
+#ifdef __linux__
+#include <time.h>
+#endif
+
#include "mmain.h"
#include "term.h"
@@ -61,9 +65,6 @@ main(int argc, char *argv[])
const struct mdoc *mdoc;
struct termp termp;
- extern int optreset;
- extern int optind;
-
p = mmain_alloc();
if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL))