summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-16 13:42:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-16 13:42:12 +0000
commit6967b9612f077f4ffe4e138a8ab25c87f383009b (patch)
tree71494541131535c5c46d9e6b65cd564f22aa8f6d /mdoc.c
parent7bf43bc19f6eacacd904fa6a1a90f52dd84902db (diff)
downloadmandoc-6967b9612f077f4ffe4e138a8ab25c87f383009b.tar.gz
Added Linux compat (strlcpy).
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdoc.c b/mdoc.c
index df9c6109..59da201e 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -147,6 +147,10 @@ static int macrowarn(struct mdoc *, int, const char *);
static int pstring(struct mdoc *, int, int,
const char *, size_t);
+#ifdef __linux__
+extern size_t strlcpy(char *, const char *, size_t);
+#endif
+
const struct mdoc_node *
mdoc_node(const struct mdoc *m)