aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-misc.c b/elf/dl-misc.c
index 2f37675b46..eacd3a440f 100644
--- a/elf/dl-misc.c
+++ b/elf/dl-misc.c
@@ -248,7 +248,8 @@ _dl_debug_vdprintf (int fd, int tag_p, const char *fmt, va_list arg)
/* Finally write the result. */
#ifdef INTERNAL_SYSCALL
- INTERNAL_SYSCALL (writev, 3, fd, &iov, niov);
+ INTERNAL_SYSCALL_DECL (err);
+ INTERNAL_SYSCALL (writev, err, 3, fd, &iov, niov);
#elif RTLD_PRIVATE_ERRNO
/* We have to take this lock just to be sure we don't clobber the private
errno when it's being used by another thread that cares about it.