From: Andi Gutmans Date: Sun, 21 Jan 2001 17:35:31 +0000 (+0000) Subject: - BeOS apparently doesn't have realpath(). Improve the previously X-Git-Tag: php-4.0.5RC1~504 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8769a693c97dbcd9cb477a306b3841269ddf2938;p=php - BeOS apparently doesn't have realpath(). Improve the previously commited patch. --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 5301adf9d4..b82b6f8587 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -35,10 +35,6 @@ #include #endif -#ifdef __BEOS__ -#define realpath(x,y) strcpy(y,x) -#endif - #define VIRTUAL_CWD_DEBUG 0 #ifdef ZTS @@ -279,7 +275,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func if (path_length == 0) return (0); -#ifndef TSRM_WIN32 +#if !defined(TSRM_WIN32) && !defined(__BEOS__) if (IS_ABSOLUTE_PATH(path, path_length)) { if (realpath(path, resolved_path)) { path = resolved_path;