]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Skip undefined va_arg_pack
authorStan Shebs <stanshebs@google.com>
Fri, 19 Jan 2018 17:31:04 +0000 (09:31 -0800)
committerStan Shebs <stanshebs@google.com>
Thu, 25 Jan 2018 00:03:39 +0000 (16:03 -0800)
sysdeps/generic/ldsodefs.h

index 0ea27865c0c1f53ab2b9a540c7b4f716b7ff61ac..a9c2b0835a7783962ebbd513f30d7dc144cf8ba5 100644 (file)
@@ -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