[!defined PATH_MAX]: Define chdir_long to chdir on systems like the Hurd.

This commit is contained in:
Jim Meyering committed 2004-11-30 14:45:28 +00:00
1 parent 86c716db61
commit 8f3175736e
1 file changed
+15
+15
View File
@@ -17,4 +17,19 @@
/* Written by Jim Meyering. */
#include <unistd.h>
#include <limits.h>
#ifndef PATH_MAX
# ifdef MAXPATHLEN
# define PATH_MAX MAXPATHLEN
# endif
#endif
/* On systems without PATH_MAX, presume that chdir accepts
arbitrarily long directory names. */
#ifndef PATH_MAX
# define chdir_long(Dir) chdir (Dir)
#else
int chdir_long (char const *dir);
#endif