=================================================================== RCS file: /cvs/mandoc/compat_strlcpy.c,v retrieving revision 1.1 retrieving revision 1.5 diff -u -p -r1.1 -r1.5 --- mandoc/compat_strlcpy.c 2011/07/24 18:15:14 1.1 +++ mandoc/compat_strlcpy.c 2020/06/15 01:37:15 1.5 @@ -1,11 +1,6 @@ -#ifdef HAVE_STRLCPY +/* $Id: compat_strlcpy.c,v 1.5 2020/06/15 01:37:15 schwarze Exp $ */ +/* $OpenBSD: compat_strlcpy.c,v 1.5 2020/06/15 01:37:15 schwarze Exp $ */ -int dummy; - -#else - -/* $OpenBSD: compat_strlcpy.c,v 1.1 2011/07/24 18:15:14 kristaps Exp $ */ - /* * Copyright (c) 1998 Todd C. Miller * @@ -21,6 +16,7 @@ int dummy; * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "config.h" #include #include @@ -55,5 +51,3 @@ strlcpy(char *dst, const char *src, size_t siz) return(s - src - 1); /* count does not include NUL */ } - -#endif