]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Musl libc fixes
authoralaviss <alaviss@users.noreply.github.com>
Wed, 5 Jul 2017 17:39:13 +0000 (00:39 +0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 5 Jul 2017 17:39:13 +0000 (10:39 -0700)
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

lib/libspl/include/assert.h

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