cvs: php4 /main php.h
| From: | Andi Gutmans | Date: | Thu, 07 Sep 2000 15:20:30 +0000 |
| Subject: | cvs: php4 /main php.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1618@lists.php.net to get a copy of this message | ||
andi Thu Sep 7 08:20:30 2000 EDT
Modified files:
/php4/main php.h
Log:
- Smarter detection of MAXPATHLEN
Index: php4/main/php.h
diff -u php4/main/php.h:1.124 php4/main/php.h:1.125
--- php4/main/php.h:1.124 Sun Sep 3 21:18:04 2000
+++ php4/main/php.h Thu Sep 7 08:20:29 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php.h,v 1.124 2000/09/04 04:18:04 andi Exp $ */
+/* $Id: php.h,v 1.125 2000/09/07 15:20:29 andi Exp $ */
#ifndef PHP_H
#define PHP_H
@@ -212,7 +212,11 @@
#define STR_PRINT(str) ((str)?(str):"")
#ifndef MAXPATHLEN
-#define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
+# ifdef PATH_MAX
+# define MAXPATHLEN PATH_MAX
+# else
+# define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */
+# endif
#endif
#define PHP_FN(name) php_if_##name