Moved PATH_MAX definition from lib/util.h into lib/fs.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-11-09 21:25:07 +03:00
parent 9b43d71799
commit 8425e6fc71
2 changed files with 11 additions and 12 deletions

View File

@ -45,6 +45,17 @@
# define S_ISNAM(x) 0
#endif
#ifndef PATH_MAX
#ifdef _POSIX_VERSION
#define PATH_MAX _POSIX_PATH_MAX
#else
#ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN
#else
#define PATH_MAX 1024
#endif
#endif
#endif
#ifndef MAXPATHLEN
# define MC_MAXPATHLEN 4096

View File

@ -20,18 +20,6 @@
#define MIN_I18NTIMELENGTH 10
#define STD_I18NTIMELENGTH 12
#ifndef PATH_MAX
#ifdef _POSIX_VERSION
#define PATH_MAX _POSIX_PATH_MAX
#else
#ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN
#else
#define PATH_MAX 1024
#endif
#endif
#endif
#ifndef MAXSYMLINKS
#define MAXSYMLINKS 32
#endif