1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

PATH_MAX from sys/param.h, when not available from limits.h.

This commit is contained in:
Jeremy Olexa 2010-01-09 16:53:41 -08:00
parent 104b0b4ca8
commit 8e39fcf97b
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-01-09 Jeremy Olexa <darkside@gentoo.org> (tiny change)
* init.c: Deal with systems which provide PATH_MAX in
sys/param.h rather than limits.h.
2009-10-09 Steven Schweda <sms@antinode.info>
* utils.c: Added characters " : \ | to the list of normal

View File

@ -37,6 +37,15 @@ as that of the covered work. */
#endif
#include <string.h>
#include <errno.h>
#include <limits.h>
/* not all systems provide PATH_MAX in limits.h */
#ifndef PATH_MAX
# include <sys/param.h>
# ifndef PATH_MAX
# define PATH_MAX MAXPATHLEN
# endif
#endif
#ifdef HAVE_PWD_H
# include <pwd.h>