Formerly make.h.~57~
authorRoland McGrath <roland@redhat.com>
Thu, 15 Oct 1992 23:01:36 +0000 (23:01 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 15 Oct 1992 23:01:36 +0000 (23:01 +0000)
make.h

diff --git a/make.h b/make.h
index 61b525c..f771e28 100644 (file)
--- a/make.h
+++ b/make.h
@@ -79,20 +79,21 @@ extern int errno;
 #endif
 
 #ifndef        PATH_MAX
-#ifdef POSIX
-#define        GET_PATH_MAX    pathconf ("/", _PC_PATH_MAX)
-#else  /* Not POSIX.  */
+#ifndef        POSIX
+#define        PATH_MAX        MAXPATHLEN
+#endif /* Not POSIX.  */
+#endif /* No PATH_MAX.  */
 #ifndef MAXPATHLEN
 #define MAXPATHLEN 1024
 #endif /* No MAXPATHLEN.  */
-#define        PATH_MAX        MAXPATHLEN
-#endif /* POSIX.  */
-#endif /* No PATH_MAX.  */
 
 #ifdef PATH_MAX
-#define        PATH_VAR(var)   char var[PATH_MAX]
 #define        GET_PATH_MAX    PATH_MAX
+#define        PATH_VAR(var)   char var[PATH_MAX]
 #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)
 #endif