diff options
author | Andi Gutmans <andi@php.net> | 2000-09-07 15:20:29 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-09-07 15:20:29 +0000 |
commit | 204f4adca72fc5dfd29c1c6e89655f85aba83c47 (patch) | |
tree | a178f48063935848100727239e6fcf9978e65ab1 /main/php.h | |
parent | f390d7e2aba3ef0ba85c27d5391b31481f357c75 (diff) | |
download | php-git-204f4adca72fc5dfd29c1c6e89655f85aba83c47.tar.gz |
- Smarter detection of MAXPATHLEN
Diffstat (limited to 'main/php.h')
-rw-r--r-- | main/php.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/php.h b/main/php.h index e48a6ccfe3..54d2e6ed40 100644 --- a/main/php.h +++ b/main/php.h @@ -212,7 +212,11 @@ char *strerror(int); #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 |