aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl
diff options
context:
space:
mode:
authoralaviss <[email protected]>2017-07-06 00:39:13 +0700
committerBrian Behlendorf <[email protected]>2017-07-05 10:39:13 -0700
commit478e3ecf8bc98687a336a64214c0e5e122454f52 (patch)
tree101c2d070bd63bfcc391e26d9ddb322c59dc646d /lib/libspl
parent688c94c5c03c693f91d48adcf4b8826f8e16c6fd (diff)
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 <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Leorize <[email protected]> Closes #6310
Diffstat (limited to 'lib/libspl')
-rw-r--r--lib/libspl/include/assert.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libspl/include/assert.h b/lib/libspl/include/assert.h
index 6237d6bcf..b53942094 100644
--- a/lib/libspl/include/assert.h
+++ b/lib/libspl/include/assert.h
@@ -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)