Skip to content

Commit

Permalink
Musl libc fixes
Browse files Browse the repository at this point in the history
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 openzfs#6310
  • Loading branch information
alaviss authored and tonyhutter committed Jul 6, 2017
1 parent 5e6057b commit bf04e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libspl/include/assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bf04e4d

Please sign in to comment.