diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-05 11:00:00 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-05 11:00:00 +0100 |
commit | c1bbeca0d4107bab3e8dea5a55f743a15328dd4f (patch) | |
tree | a55d0aa3fb7af77625b4c7a820ad804e35b734d0 /tools | |
parent | 6b015ec84f71a9543c3b2b6f735ed85ea38b0f45 (diff) |
kconfig: workaround for GNU/Hurd
Diffstat (limited to 'tools')
-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 866369f..5c16d33 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 315ce2c..9d8a1f2 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 37fdf61..d7eb9ff 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 |