From 0ac29b53dc038408b08e0f8515ae6edabc145f76 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 20 Apr 2017 22:01:50 +0200 Subject: Add support of musl-libc The port is functional. Bound checking is not supported yet. --- include/stdarg.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/stdarg.h b/include/stdarg.h index 10ce733..9adfc61 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -16,7 +16,11 @@ typedef struct { char *reg_save_area; } __va_list_struct; +/* Avoid conflicting definition for va_list on musl libc */ +#ifndef __DEFINED_va_list typedef __va_list_struct va_list[1]; +#define __DEFINED_va_list +#endif void __va_start(__va_list_struct *ap, void *fp); void *__va_arg(__va_list_struct *ap, int arg_type, int size, int align); -- cgit v1.3.1