summaryrefslogtreecommitdiffstatshomepage
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
commitdf01ed96c60443f7a8051e1a5e9fe22e43b07664 (patch)
treed144386a1a6836ae60e595306b77b379c1e055ae
parent20abb2da1732fd8b8ae202242f3a1f1a2aeae499 (diff)
downloadmandoc-df01ed96c60443f7a8051e1a5e9fe22e43b07664.tar.gz
mandoc-df01ed96c60443f7a8051e1a5e9fe22e43b07664.tar.zst
mandoc-df01ed96c60443f7a8051e1a5e9fe22e43b07664.zip
Added Linux compat (strlcpy).
-rw-r--r--mdoc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index 44c21846..f156db9e 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.91 2009/07/15 15:36:38 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.92 2009/07/16 13:42:12 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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)