mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 06:27:57 +00:00
Formerly make.h.~57~
This commit is contained in:
parent
d3543bc097
commit
6683a1c8db
1 changed files with 8 additions and 7 deletions
15
make.h
15
make.h
|
@ -79,20 +79,21 @@ extern int errno;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
#ifdef POSIX
|
#ifndef POSIX
|
||||||
#define GET_PATH_MAX pathconf ("/", _PC_PATH_MAX)
|
#define PATH_MAX MAXPATHLEN
|
||||||
#else /* Not POSIX. */
|
#endif /* Not POSIX. */
|
||||||
|
#endif /* No PATH_MAX. */
|
||||||
#ifndef MAXPATHLEN
|
#ifndef MAXPATHLEN
|
||||||
#define MAXPATHLEN 1024
|
#define MAXPATHLEN 1024
|
||||||
#endif /* No MAXPATHLEN. */
|
#endif /* No MAXPATHLEN. */
|
||||||
#define PATH_MAX MAXPATHLEN
|
|
||||||
#endif /* POSIX. */
|
|
||||||
#endif /* No PATH_MAX. */
|
|
||||||
|
|
||||||
#ifdef PATH_MAX
|
#ifdef PATH_MAX
|
||||||
#define PATH_VAR(var) char var[PATH_MAX]
|
|
||||||
#define GET_PATH_MAX PATH_MAX
|
#define GET_PATH_MAX PATH_MAX
|
||||||
|
#define PATH_VAR(var) char var[PATH_MAX]
|
||||||
#else
|
#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)
|
#define PATH_VAR(var) char *var = (char *) alloca (GET_PATH_MAX)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue