diff mbox series

[libgpiod,v1.6.x,2/3] core: add missing #include for basename()

Message ID 20230225030813.3885661-3-benl@squareup.com
State New
Headers show
Series build: fix compile issues against non-glibc | expand

Commit Message

Benjamin Li Feb. 25, 2023, 3:08 a.m. UTC
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@squareup.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 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>