aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/ldsodefs.h
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-01-19 09:31:04 -0800
committerStan Shebs <stanshebs@google.com>2018-01-19 09:31:04 -0800
commit1f3a3e1742c91746216708e95814b9aa0b9b4b45 (patch)
tree4e961e8370f2e3fdd7dfda2fe154120fdee79523 /sysdeps/generic/ldsodefs.h
parent5a8bc50ed92a5eeb1a382e55cc873e3ecbbdffc0 (diff)
downloadglibc-1f3a3e1742c91746216708e95814b9aa0b9b4b45.zip
glibc-1f3a3e1742c91746216708e95814b9aa0b9b4b45.tar.gz
glibc-1f3a3e1742c91746216708e95814b9aa0b9b4b45.tar.bz2
Skip undefined va_arg_pack
Diffstat (limited to 'sysdeps/generic/ldsodefs.h')
-rw-r--r--sysdeps/generic/ldsodefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 0ea2786..a9c2b08 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -710,7 +710,11 @@ _dl_dprintf (int fd, const char *fmt, ...)
{
/* Use local declaration to avoid includign <stdio.h>. */
extern int __dprintf(int fd, const char *format, ...) attribute_hidden;
+#if defined(__clang__)
+ __dprintf (fd, fmt);
+#else
__dprintf (fd, fmt, __builtin_va_arg_pack ());
+#endif
}
#endif