diff mbox series

[libgpiod,1/3] core: add missing header inclusion

Message ID 20200608090652.805516-2-gary.bisson@boundarydevices.com
State New
Headers show
Series Add Android build support | expand

Commit Message

Gary Bisson June 8, 2020, 9:06 a.m. UTC
Otherwise throwing the following error:
lib/core.c:102:9: error: implicit declaration of function 'basename' is
invalid in C99

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 lib/core.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/lib/core.c b/lib/core.c
index f704b44..b71a284 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>