diff --git a/trunk/configure.in b/trunk/configure.in index debec35..5b79884 100644 --- a/trunk/configure.in +++ b/trunk/configure.in @@ -106,6 +106,7 @@ AC_CHECK_HEADERS([ \ utmp.h \ utmpx.h \ wctype.h \ + vis.h \ ]) case "$host" in @@ -360,6 +361,7 @@ AC_CHECK_FUNCS([ \ strerror \ strlcat \ strlcpy \ + strnvis \ strrchr \ strstr \ strtol \ diff --git a/trunk/include/sj3compat/sj3compat.h b/trunk/include/sj3compat/sj3compat.h index dc625f0..ef5b018 100644 --- a/trunk/include/sj3compat/sj3compat.h +++ b/trunk/include/sj3compat/sj3compat.h @@ -125,4 +125,10 @@ size_t sj3_strlcat(char *, const char *, size_t); size_t sj3_strlcpy(char *, const char *, size_t); #endif +/* vis.c */ +#ifndef HAVE_STRNVIS +#define strnvis sj3strnvis +int strnvis(char *, const char *, size_t, int); +#endif + #endif /* SJ3COMPAT_H */ diff --git a/trunk/lib/sj3compat/Makefile.am b/trunk/lib/sj3compat/Makefile.am index a83e35c..b614d34 100644 --- a/trunk/lib/sj3compat/Makefile.am +++ b/trunk/lib/sj3compat/Makefile.am @@ -13,4 +13,6 @@ libsj3compat_la_SOURCES = \ inet_ntoa.c \ setproctitle.c \ strlcat.c \ - strlcpy.c + strlcpy.c \ + vis.c +