From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Noticed on OSX. Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- libsmartcols/src/table_print.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index 691a4b2f8..73250c68a 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -1635,9 +1635,9 @@ int scols_print_table(struct libscols_table *tb) * * Returns: 0, a negative value in case of an error. */ +#ifdef HAVE_OPEN_MEMSTREAM int scols_print_table_to_string(struct libscols_table *tb, char **data) { -#ifdef HAVE_OPEN_MEMSTREAM FILE *stream, *old_stream; size_t sz; int rc; @@ -1659,8 +1659,13 @@ int scols_print_table_to_string(struct libscols_table *tb, char **data) scols_table_set_stream(tb, old_stream); return rc; +} #else +int scols_print_table_to_string( + struct libscols_table *tb __attribute__((__unused__)), + char **data __attribute__((__unused__))) +{ return -ENOSYS; -#endif } +#endif -- 2.12.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html