diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-16 13:42:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-16 13:42:12 +0000 |
commit | df01ed96c60443f7a8051e1a5e9fe22e43b07664 (patch) | |
tree | d144386a1a6836ae60e595306b77b379c1e055ae /mdoc.c | |
parent | 20abb2da1732fd8b8ae202242f3a1f1a2aeae499 (diff) | |
download | mandoc-df01ed96c60443f7a8051e1a5e9fe22e43b07664.tar.gz mandoc-df01ed96c60443f7a8051e1a5e9fe22e43b07664.tar.zst mandoc-df01ed96c60443f7a8051e1a5e9fe22e43b07664.zip |
Added Linux compat (strlcpy).
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |