The <linux/limits.h> header file is only used to get PATH_MAX.
Instead of including the entire header, just provided a fallback PATH_MAX.
// libc includes
#include <limits.h>
-#include <linux/limits.h> // defines PATH_MAX
#include <stdlib.h>
#include <string.h>
+// If limits.h does not provide PATH_MAX, define it instead of relying on <linux/limits.h>.
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif /* PATH_MAX */
+
// fll-0 includes
#include <fll/level_0/type.h>
#include <fll/level_0/status.h>