]> granicus.if.org Git - php/commitdiff
- BeOS apparently doesn't have realpath(). Improve the previously
authorAndi Gutmans <andi@php.net>
Sun, 21 Jan 2001 17:35:31 +0000 (17:35 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 21 Jan 2001 17:35:31 +0000 (17:35 +0000)
  commited patch.

TSRM/tsrm_virtual_cwd.c

index 5301adf9d49df8d504ab0d01fcd41bebcc93d4d6..b82b6f8587ed46de9b84e69d3457916ba8308b2b 100644 (file)
 #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;