fswatch: add missing limits.h include for NAME_MAX
PATCH 1/1 fswatch: add missing limits.h include for NAME_MAX
fixes compilation on stricter libcs like Musl.
ell/fswatch.c: In function 'inotify_read_cb':ell/fswatch.c:80:45: error: 'NAME_MAX' undeclared (first use in this function); did you mean 'SIZE_MAX'?
uint8_t buf[sizeof(struct inotify_event) + NAME_MAX + 1]
^~~~~~~~
SIZE_MAX
---
ell/fswatch.c | 1 +
1 file changed, 1 insertion(+)ell/fswatch.c +1 -0
@@ -26,6 +26,7 @@#include <dirent.h> #include <unistd.h> +#include <limits.h> #include <sys/inotify.h> #include "private.h"
Signature · 1 line
2.18.0