diff --git a/src/gpio.c b/src/gpio.c index ede3187..74229ec 100644 --- a/src/gpio.c +++ b/src/gpio.c @@ -23,6 +23,12 @@ #if PERIPHERY_GPIO_CDEV_SUPPORT #include + +/* Disable cdev support when building with older kernel headers that don't yet + * support line events in the gpio-cdev abi */ +#ifndef GPIO_GET_LINEEVENT_IOCTL +#undef PERIPHERY_GPIO_CDEV_SUPPORT +#endif #endif #include "gpio.h"