diff options
author | Andi Gutmans <andi@php.net> | 2001-01-21 17:35:31 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-01-21 17:35:31 +0000 |
commit | 8769a693c97dbcd9cb477a306b3841269ddf2938 (patch) | |
tree | 3031270a0c6f50996683a80a6c47cf606be8ff0a /TSRM | |
parent | 83cf6629ec02f98e7ceca3977709f21c1238c910 (diff) | |
download | php-git-8769a693c97dbcd9cb477a306b3841269ddf2938.tar.gz |
- BeOS apparently doesn't have realpath(). Improve the previously
commited patch.
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 <io.h> #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; |