From c98b33ca589a1d5c609b1c2ea6b7d1f75844664b Mon Sep 17 00:00:00 2001
From: Mihai Moldovan <ionic@ionic.de>
Date: Tue, 29 Sep 2020 18:30:16 +0200
Subject: [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.
---
 libdnf/utils/smartcols/Cell.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libdnf/utils/smartcols/Cell.hpp b/libdnf/utils/smartcols/Cell.hpp
index b90f0050..fc3c1d4a 100644
--- a/libdnf/utils/smartcols/Cell.hpp
+++ b/libdnf/utils/smartcols/Cell.hpp
@@ -26,6 +26,10 @@
 #include <string>
 #include <stdexcept>
 
+extern "C" {
+@LIBSMARTCOLS_COMPAT@ extern int scols_cell_get_alignment(const struct libscols_cell *ce);
+}
+
 class Cell
 {
 public:
-- 
2.26.2

