aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'libctf/ctf-error.c')
-rw-r--r--libctf/ctf-error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libctf/ctf-error.c b/libctf/ctf-error.c
index 84d14d5..20971f4 100644
--- a/libctf/ctf-error.c
+++ b/libctf/ctf-error.c
@@ -19,6 +19,7 @@
#include <ctf-impl.h>
#include <stddef.h>
+#include <string.h>
/* This construct is due to Bruno Haible: much thanks. */
@@ -67,7 +68,7 @@ ctf_errmsg (int error)
if (error >= ECTF_BASE && (error - ECTF_BASE) < ECTF_NERR)
str = _ctf_errlist.str + _ctf_erridx[error - ECTF_BASE];
else
- str = ctf_strerror (error);
+ str = (const char *) strerror (error);
return (str ? str : "Unknown error");
}