From 0447708f8d28e1b0917f42790bbd0425a1515b32 Mon Sep 17 00:00:00 2001 From: Jonathan Peyton Date: Sat, 19 Aug 2017 23:53:36 +0000 Subject: [PATCH] Use va_copy instead of __va_copy to fix building libomp against musl libc Fixes https://bugs.llvm.org/show_bug.cgi?id=34040 Patch by Peter Levine Differential Revision: https://reviews.llvm.org/D36343 llvm-svn: 311269 --- openmp/runtime/src/kmp_str.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/runtime/src/kmp_str.cpp b/openmp/runtime/src/kmp_str.cpp index 88967e155a18..75d33dfded68 100644 --- a/openmp/runtime/src/kmp_str.cpp +++ b/openmp/runtime/src/kmp_str.cpp @@ -168,7 +168,7 @@ void __kmp_str_buf_vprint(kmp_str_buf_t *buffer, char const *format, #if !KMP_OS_WINDOWS va_list _args; - __va_copy(_args, args); // Make copy of args. + va_copy(_args, args); // Make copy of args. #define args _args // Substitute args with its copy, _args. #endif // KMP_OS_WINDOWS rc = KMP_VSNPRINTF(buffer->str + buffer->used, free, format, args);