diff options
author | Roland McGrath <roland@redhat.com> | 1992-10-15 23:01:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1992-10-15 23:01:36 +0000 |
commit | 6683a1c8db4d72570c5560b442545271f2a729ab (patch) | |
tree | bdbe0882df83d8491e29b7e936498e5d692ceee7 /make.h | |
parent | d3543bc097a8a86190b9f2126a1cee9a9cc98b63 (diff) | |
download | gunmake-6683a1c8db4d72570c5560b442545271f2a729ab.tar.gz |
Formerly make.h.~57~
Diffstat (limited to 'make.h')
-rw-r--r-- | make.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -79,20 +79,21 @@ extern int errno; #endif #ifndef PATH_MAX -#ifdef POSIX -#define GET_PATH_MAX pathconf ("/", _PC_PATH_MAX) -#else /* Not POSIX. */ +#ifndef POSIX +#define PATH_MAX MAXPATHLEN +#endif /* Not POSIX. */ +#endif /* No PATH_MAX. */ #ifndef MAXPATHLEN #define MAXPATHLEN 1024 #endif /* No MAXPATHLEN. */ -#define PATH_MAX MAXPATHLEN -#endif /* POSIX. */ -#endif /* No PATH_MAX. */ #ifdef PATH_MAX -#define PATH_VAR(var) char var[PATH_MAX] #define GET_PATH_MAX PATH_MAX +#define PATH_VAR(var) char var[PATH_MAX] #else +#define NEED_GET_PATH_MAX +extern unsigned int get_path_max (); +#define GET_PATH_MAX (get_path_max ()) #define PATH_VAR(var) char *var = (char *) alloca (GET_PATH_MAX) #endif |