Browse Source

- Smarter detection of MAXPATHLEN

PHP-4.0.5
Andi Gutmans 26 years ago
parent
commit
204f4adca7
  1. 6
      main/php.h

6
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

Loading…
Cancel
Save