X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Fprogs.priv.h;h=3384d37c4e6dea01c97e86a765539ffb4ab5aab2;hp=fb5a84760733940511a27d3f02e32e7467e3ea2c;hb=0eb88fc5281804773e2a0c7a488a4452463535ce;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/progs/progs.priv.h b/progs/progs.priv.h index fb5a8476..3384d37c 100644 --- a/progs/progs.priv.h +++ b/progs/progs.priv.h @@ -30,7 +30,7 @@ * Author: Thomas E. Dickey 1997,1998 * ****************************************************************************/ /* - * $Id: progs.priv.h,v 1.17 1998/02/11 12:14:03 tom Exp $ + * $Id: progs.priv.h,v 1.19 1999/02/23 11:10:32 tom Exp $ * * progs.priv.h * @@ -68,16 +68,6 @@ # include #endif -#ifndef PATH_MAX -# if defined(_POSIX_PATH_MAX) -# define PATH_MAX _POSIX_PATH_MAX -# elif defined(MAXPATHLEN) -# define PATH_MAX MAXPATHLEN -# else -# define PATH_MAX 255 /* the Posix minimum pathsize */ -# endif -#endif - #if HAVE_DIRENT_H # include # define NAMLEN(dirent) strlen((dirent)->d_name) @@ -112,7 +102,7 @@ extern int optind; #endif /* HAVE_GETOPT_H */ #include -#include +#include #include #include @@ -146,6 +136,17 @@ extern int optind; #define STDERR_FILENO 2 #endif +/* may be in limits.h, included from various places */ +#ifndef PATH_MAX +# if defined(_POSIX_PATH_MAX) +# define PATH_MAX _POSIX_PATH_MAX +# elif defined(MAXPATHLEN) +# define PATH_MAX MAXPATHLEN +# else +# define PATH_MAX 255 /* the Posix minimum pathsize */ +# endif +#endif + /* We use isascii only to guard against use of 7-bit ctype tables in the * isprint test in infocmp. */