Skip to content

Commit 3268f4a

Browse files
krajtingleby
authored andcommitted
gpio: Include limits.h for PATH_MAX
Musl exposes this problem where PATH_MAX is used but limits.h is not included, it works with glibc perhaps due to limits.h being indirectly included by another system header. Signed-off-by: Khem Raj <[email protected]>
1 parent 47c3850 commit 3268f4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gpio/gpio_chardev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <dirent.h>
1313
#include <errno.h>
1414
#include <fcntl.h>
15+
#include <limits.h>
1516
#include <poll.h>
1617
#include <pthread.h>
1718
#include <signal.h>

0 commit comments

Comments
 (0)