From: Mihai Moldovan Date: Tue, 29 Sep 2020 16:30:16 +0000 (+0200) Subject: [PATCH] Use private scols_cell_get_alignment() with older libsmartcols X-Git-Tag: archive/raspbian/0.69.0-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0ff486d64a96d525591e311ccf0f56a095e1ce24;p=libdnf.git [PATCH] Use private scols_cell_get_alignment() with older libsmartcols Stretch's version of libsmartcols includes the (binary) symbol, but does not export it via its API, probably to make the intermediate release API-compatible. libdnf needs it, so we'll just declare the function and hope that linking will be able to pick it up just fine. For newer versions, that should just turn into a comment. Gbp-Pq: Name 0009-Use-private-scols_cell_get_alignment-with-older-libs.patch --- diff --git a/libdnf/utils/smartcols/Cell.hpp b/libdnf/utils/smartcols/Cell.hpp index b90f005..fc3c1d4 100644 --- a/libdnf/utils/smartcols/Cell.hpp +++ b/libdnf/utils/smartcols/Cell.hpp @@ -26,6 +26,10 @@ #include #include +extern "C" { +@LIBSMARTCOLS_COMPAT@ extern int scols_cell_get_alignment(const struct libscols_cell *ce); +} + class Cell { public: