diff options
author | Wez Furlong <wez@messagesystems.com> | 2012-03-24 11:38:02 -0400 |
---|---|---|
committer | Wez Furlong <wez@messagesystems.com> | 2012-03-24 11:38:02 -0400 |
commit | 08eb167b40d66da3b4a3a21351a8ed5b99fc3a83 (patch) | |
tree | 1e0461bb581838f2a9b982651a92b6ed82991aca /libelf/elf_errmsg.c | |
parent | 360c8b9c5c6424c753131c7253da393fa6aab71f (diff) | |
download | ctf-08eb167b40d66da3b4a3a21351a8ed5b99fc3a83.tar.gz |
always build our libelf, as our libdwarf doesn't get along with the
system libelf on linux
Diffstat (limited to 'libelf/elf_errmsg.c')
-rw-r--r-- | libelf/elf_errmsg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libelf/elf_errmsg.c b/libelf/elf_errmsg.c index d6787b1..9fd96bb 100644 --- a/libelf/elf_errmsg.c +++ b/libelf/elf_errmsg.c @@ -69,6 +69,10 @@ elf_errmsg(int error) if (error < 0 || error >= ELF_E_NUM) return _libelf_errors[ELF_E_NUM]; if (oserr) { +#if !HAVE_STRLCPY +# define strlcpy strncpy +# define strlcat(dst, src, len) strcat(dst, src) +#endif strlcpy(LIBELF_PRIVATE(msg), _libelf_errors[error], sizeof(LIBELF_PRIVATE(msg))); strlcat(LIBELF_PRIVATE(msg), ": ", sizeof(LIBELF_PRIVATE(msg))); |