File:  [cvs.NetBSD.org] / pkgsrc / print / foomatic-filters / patches / Attic / patch-util.h
Revision 1.1: download - view: text, annotated - select for diffs
Sun Jul 23 10:17:23 2023 UTC (18 months, 3 weeks ago) by bsiegert
Branches: MAIN
CVS tags: HEAD
foomatic-filters: update to 4.0.17.

This is a big update across many versions, too many changes to list here.

$NetBSD: patch-util.h,v 1.1 2023/07/23 10:17:23 bsiegert Exp $

Use HAVE_STRLCPY and HAVE_STRLCAT.

--- util.h.orig	2012-07-02 14:50:46.000000000 +0000
+++ util.h
@@ -70,8 +70,12 @@ char * strcasestr (const char *haystack,
 /* Copy at most size-1 characters from src to dest
    dest will always be \0 terminated (unless size == 0)
    returns strlen(src) */
+#ifndef HAVE_STRLCPY
 size_t strlcpy(char *dest, const char *src, size_t size);
+#endif
+#ifndef HAVE_STRLCAT
 size_t strlcat(char *dest, const char *src, size_t size);
+#endif
 
 /* Replace all occurences of each of the characters in 'chars' by 'repl' */
 void strrepl(char *str, const char *chars, char repl);

CVSweb <webmaster@jp.NetBSD.org>