linuxgpio: fix linking with libgpiod < v1.6

Due to a copy and paste error, the required define for
using libgpido at all was not set and thus the library
was not used at all.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
Michael Heimpold
2024-04-27 22:56:51 +02:00
parent fcf8cd7a03
commit ca65e84fb1

View File

@@ -541,6 +541,7 @@ if test "x$enabled_linuxgpio" = xyes; then
], [
PKG_CHECK_MODULES([LIBGPIOD], [libgpiod], [
have_libgpiod=yes
AC_DEFINE([HAVE_LIBGPIOD], [1], [Linux libgpiod available])
AC_DEFINE([HAVE_LIBGPIOD_V1_6], [0], [Linux libgpiod >= v1.6 but < 2.0 available])
AC_DEFINE([HAVE_LIBGPIOD_V2], [0], [Linux libgpiod >= 2.0 available])
], [