aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdio/xprintf_errno.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2013-08-31 22:32:42 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2013-08-31 22:32:42 +0000
commite73151eb827122b6da662018d051ba8f58ef7e82 (patch)
treef73c21f9b8d1e27c2aa3ff9c34ace0b9a837e4e0 /lib/libc/stdio/xprintf_errno.c
parente639f2570602ce452ae8a30cd634dc6a23bff1f1 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/xprintf_errno.c')
-rw-r--r--lib/libc/stdio/xprintf_errno.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/xprintf_errno.c b/lib/libc/stdio/xprintf_errno.c
index 0c2be46a6d70..3c831d129388 100644
--- a/lib/libc/stdio/xprintf_errno.c
+++ b/lib/libc/stdio/xprintf_errno.c
@@ -34,6 +34,7 @@
#include <vis.h>
#include <assert.h>
#include <sys/time.h>
+#include "errlst.h"
#include "printf.h"
int
@@ -54,7 +55,7 @@ __printf_render_errno(struct __printf_io *io, const struct printf_info *pi __unu
ret = 0;
error = *((const int *)arg[0]);
- if (error >= 0 && error < sys_nerr) {
+ if (error >= 0 && error < __hidden_sys_nerr) {
p = strerror(error);
return (__printf_out(io, pi, p, strlen(p)));
}