X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=compat%2Fstrlcpy.c;h=765bde84ea15376d0c1b06856d0334f7b1934a8b;hb=e8db7f6eea9b35527ddd4532affabd18a30549b5;hp=89fb01b0b6401f654359833fd451da71df13ffab;hpb=98b9fd63cd28a3636a7cd24641b8f497eaadcd50;p=debian%2Fsudo diff --git a/compat/strlcpy.c b/compat/strlcpy.c index 89fb01b..765bde8 100644 --- a/compat/strlcpy.c +++ b/compat/strlcpy.c @@ -1,7 +1,7 @@ /* $OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $ */ /* - * Copyright (c) 1998, 2003-2005, 2010-2011 + * Copyright (c) 1998, 2003-2005, 2010-2011, 2013 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any @@ -19,6 +19,8 @@ #include +#ifndef HAVE_STRLCPY + #include #include "missing.h" @@ -53,3 +55,4 @@ strlcpy(char *dst, const char *src, size_t siz) return s - src - 1; /* count does not include NUL */ } +#endif /* HAVE_STRLCPY */