This is a standard include, it looks like an error that it's missing. Probably pulled in transitively by one of the other includes on some/ most other platforms. Signed-off-by: Benjamin Li <benl@xxxxxxxxxxxx> --- lib/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core.c b/lib/core.c index 35dcd8e..cf1d677 100644 --- a/lib/core.c +++ b/lib/core.c @@ -10,6 +10,7 @@ #include <errno.h> #include <fcntl.h> #include <gpiod.h> +#include <libgen.h> #include <limits.h> #include <linux/gpio.h> #include <poll.h> -- 2.25.1