diff options
-rw-r--r-- | tools/kconfig/conf.c | 4 | ||||
-rw-r--r-- | tools/kconfig/mconf.c | 4 | ||||
-rw-r--r-- | tools/kconfig/zconf.lex.c_shipped | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/tools/kconfig/conf.c b/tools/kconfig/conf.c index 866369f1..5c16d33e 100644 --- a/tools/kconfig/conf.c +++ b/tools/kconfig/conf.c @@ -18,6 +18,10 @@ #include "lkc.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + static void conf(struct menu *menu); static void check_conf(struct menu *menu); static void xfgets(char *str, int size, FILE *in); diff --git a/tools/kconfig/mconf.c b/tools/kconfig/mconf.c index 315ce2c7..9d8a1f28 100644 --- a/tools/kconfig/mconf.c +++ b/tools/kconfig/mconf.c @@ -22,6 +22,10 @@ #include "lkc.h" #include "lxdialog/dialog.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + static const char mconf_readme[] = N_( "Overview\n" "--------\n" diff --git a/tools/kconfig/zconf.lex.c_shipped b/tools/kconfig/zconf.lex.c_shipped index 37fdf612..d7eb9ff2 100644 --- a/tools/kconfig/zconf.lex.c_shipped +++ b/tools/kconfig/zconf.lex.c_shipped @@ -875,6 +875,10 @@ static void warn_ignored_character(char chr) #include <unistd.h> #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif |