From ca65e84fb1b057339aa82624dadbb310e46c8153 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Sat, 27 Apr 2024 22:56:51 +0200 Subject: [PATCH] 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 --- src/configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/src/configure.ac b/src/configure.ac index be155b9a..82b79829 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -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]) ], [