* src/makeint.h (GET_PATH_MAX, PATH_VAR):
Simplify, since PATH_MAX is always defined here.
(NEED_GET_PATH_MAX): Remove.
* src/misc.c (get_path_max) [NEED_GET_PATH_MAX]: Remove.
# endif
#endif
-#ifdef PATH_MAX
-# define GET_PATH_MAX PATH_MAX
-# define PATH_VAR(var) char var[PATH_MAX+1]
-#else
-# define NEED_GET_PATH_MAX 1
-# define GET_PATH_MAX (get_path_max ())
-# define PATH_VAR(var) char *var = alloca (GET_PATH_MAX+1)
-unsigned int get_path_max (void);
-#endif
+#define GET_PATH_MAX PATH_MAX
+#define PATH_VAR(var) char var[PATH_MAX+1]
#ifndef CHAR_BIT
# define CHAR_BIT 8
#endif
\f
-#ifdef NEED_GET_PATH_MAX
-unsigned int
-get_path_max (void)
-{
- static unsigned int value;
-
- if (value == 0)
- {
- long x = pathconf ("/", _PC_PATH_MAX);
- if (x > 0)
- value = (unsigned int) x;
- else
- value = PATH_MAX;
- }
-
- return value;
-}
-#endif
-
#if !HAVE_MEMPCPY
void *
mempcpy (void *dest, const void *src, size_t n)