mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'
rather than with `#ifdef _POSIX_VERSION'.
This commit is contained in:
1 parent
66d5a12094
commit
4911e67aa8
1 file changed
+3
-3
+3
-3
@@ -58,7 +58,7 @@ extern int errno;
|
||||
|
||||
#define AUTHORS "David MacKenzie and Jim Meyering"
|
||||
|
||||
#ifdef _POSIX_VERSION
|
||||
#if HAVE_PATHCONF
|
||||
# ifndef PATH_MAX
|
||||
# define PATH_MAX_FOR(p) pathconf_wrapper ((p), _PC_PATH_MAX)
|
||||
# endif /* not PATH_MAX */
|
||||
@@ -66,7 +66,7 @@ extern int errno;
|
||||
# define NAME_MAX_FOR(p) pathconf_wrapper ((p), _PC_NAME_MAX);
|
||||
# endif /* not NAME_MAX */
|
||||
|
||||
#else /* not _POSIX_VERSION */
|
||||
#else
|
||||
|
||||
# include <sys/param.h>
|
||||
# ifndef PATH_MAX
|
||||
@@ -85,7 +85,7 @@ extern int errno;
|
||||
# endif /* not MAXNAMLEN */
|
||||
# endif /* not NAME_MAX */
|
||||
|
||||
#endif /* not _POSIX_VERSION */
|
||||
#endif
|
||||
|
||||
#ifndef _POSIX_PATH_MAX
|
||||
# define _POSIX_PATH_MAX 255
|
||||
|
||||
Reference in new issue
Block a user