Musl libc fixes

Musl libc's <stdio.h> doesn't include <stdarg.h>, which cause
`va_start` and `va_end` end up being undefined symbols.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Leorize <alaviss@users.noreply.github.com>
Closes #6310
This commit is contained in:
alaviss 2017-07-06 00:39:13 +07:00 committed by Brian Behlendorf
parent 688c94c5c0
commit 478e3ecf8b
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h>
static inline int static inline int
libspl_assert(const char *buf, const char *file, const char *func, int line) libspl_assert(const char *buf, const char *file, const char *func, int line)