Skip to content

Commit f2ed736

Browse files
committed
lib/utils/printf: Add vsnprintf alias for Clang.
Was reported to break MacOSX build.
1 parent 36ccdc9 commit f2ed736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/printf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ STATIC void strn_print_strn(void *data, const char *str, size_t len) {
102102
strn_print_env->remain -= len;
103103
}
104104

105-
#ifdef __GNUC__
105+
#if defined(__GNUC__) && !defined(__clang__)
106106
// uClibc requires this alias to be defined, or there may be link errors
107107
// when linkings against it statically.
108108
int __GI_vsnprintf(char *str, size_t size, const char *fmt, va_list ap) __attribute__((weak, alias ("vsnprintf")));

0 commit comments

Comments
 (0)