summaryrefslogtreecommitdiff
path: root/TSRM/tsrm_virtual_cwd.h
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-02-08 20:50:03 +0000
committerAntony Dovgal <tony2001@php.net>2006-02-08 20:50:03 +0000
commit1f8b32067945a69c2bd429811a81e7b6d21549a5 (patch)
tree19809d717d369d6c7af48e08534b27ae1b2dafe7 /TSRM/tsrm_virtual_cwd.h
parent39a4a46ae48720d2e3841d363cca65cd0ab374aa (diff)
downloadphp-git-1f8b32067945a69c2bd429811a81e7b6d21549a5.tar.gz
MFH: move function definition from .h to .c, where it should be
Diffstat (limited to 'TSRM/tsrm_virtual_cwd.h')
-rw-r--r--TSRM/tsrm_virtual_cwd.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h
index 362659bc9d..9c1b9d2f0a 100644
--- a/TSRM/tsrm_virtual_cwd.h
+++ b/TSRM/tsrm_virtual_cwd.h
@@ -166,23 +166,8 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC);
#endif
#endif
-/* On AIX & Tru64 when a file does not exist realpath() returns
- * NULL, and sets errno to ENOENT. Unlike in other libc implementations
- * the destination is not filled and remains undefined. Therefor, we
- * must populate it manually using strcpy as done on systems with no
- * realpath() function.
- */
#if defined(__osf__) || defined(_AIX)
-static char *php_realpath_hack(char *src, char *dest)
-{
- char *ret;
-
- if ((ret = realpath(src, dest)) == NULL && errno == ENOENT) {
- return strcpy(dest, src);
- } else {
- return ret;
- }
-}
+char *php_realpath_hack(char *src, char *dest);
#endif
#if HAVE_UTIME