From fefde05aa2b686e437a580632486ff1962b08cfe Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 11 May 2021 18:07:47 -0500 Subject: [PATCH] Update: Remove usage of . The header file is only used to get PATH_MAX. Instead of including the entire header, just provided a fallback PATH_MAX. --- level_0/f_path/c/path.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/level_0/f_path/c/path.h b/level_0/f_path/c/path.h index 129c827..6dad33f 100644 --- a/level_0/f_path/c/path.h +++ b/level_0/f_path/c/path.h @@ -12,10 +12,14 @@ // libc includes #include -#include // defines PATH_MAX #include #include +// If limits.h does not provide PATH_MAX, define it instead of relying on . +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif /* PATH_MAX */ + // fll-0 includes #include #include -- 1.8.3.1