add vis(3).

This commit is contained in:
iratqq 2008-02-06 11:59:00 +00:00
commit 30ff139bd9
3 changed files with 11 additions and 1 deletions

View file

@ -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 \

View file

@ -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 */

View file

@ -13,4 +13,6 @@ libsj3compat_la_SOURCES = \
inet_ntoa.c \
setproctitle.c \
strlcat.c \
strlcpy.c
strlcpy.c \
vis.c