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:
parent
104b0b4ca8
commit
8e39fcf97b
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user