/* * With this patch, libutil can be built on systems which PATH_MAX is * not defined. */ diff --git a/libutil/find.h b/libutil/find.h index 45e3603..b7b908e 100644 --- a/libutil/find.h +++ b/libutil/find.h @@ -21,6 +21,12 @@ #ifndef _FIND_H_ #define _FIND_H_ +/* MAX_PATH is not defined in some platforms, most notably GNU/Hurd. + In that case we define it here to some constant. */ +#ifndef PATH_MAX +# define PATH_MAX 4096 +#endif + void set_accept_dotfiles(void); void set_skip_unreadable(void); int skipthisfile(const char *);