Skip to content

Commit

Permalink
gpio: Include limits.h for PATH_MAX
Browse files Browse the repository at this point in the history
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 <raj.khem@gmail.com>
  • Loading branch information
kraj authored and tingleby committed Jan 23, 2024
1 parent 47c3850 commit 3268f4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpio/gpio_chardev.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <poll.h>
#include <pthread.h>
#include <signal.h>
Expand Down

0 comments on commit 3268f4a

Please sign in to comment.