commit | 0a295bc97fd2ba9e6dc02f382dc87bc8705dc4d0 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <dvlasenk@redhat.com> | Thu Sep 01 16:31:48 2011 +0200 |
committer | Denys Vlasenko <dvlasenk@redhat.com> | Thu Sep 01 16:31:48 2011 +0200 |
tree | b610515c4909871704693ecf00d76a1f341636f2 | |
parent | b9c7ae621172bba141ef96e95e43f658c3643c71 [diff] [blame] |
Add stpcpy to autoconf machinery * configure.ac: Add stpcpy to AC_CHECK_FUNCS. * defs.h: Frame stpcpy with "if !defined HAVE_STPCPY". * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
diff --git a/util.c b/util.c index 0277deb..7d1af70 100644 --- a/util.c +++ b/util.c
@@ -164,6 +164,7 @@ return NULL; } +#if !defined HAVE_STPCPY char * stpcpy(char *dst, const char *src) { @@ -171,6 +172,7 @@ dst++; return dst; } +#endif /* * Generic ptrace wrapper which tracks ESRCH errors