mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-22 17:16:24 +03:00
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:
@@ -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])
|
||||
], [
|
||||
|
||||
Reference in New Issue
Block a user