summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TSRM/tsrm_virtual_cwd.c2
-rw-r--r--TSRM/tsrm_virtual_cwd.h2
-rw-r--r--ext/standard/file.c4
-rw-r--r--main/safe_mode.c4
4 files changed, 2 insertions, 10 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index 86cc3fc724..12c35e1ced 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -41,7 +41,7 @@
#include "tsrm_nw.h"
#endif
-#ifdef __BEOS__
+#ifndef HAVE_REALPATH
#define realpath(x,y) strcpy(y,x)
#endif
diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h
index 18452304fd..2465d81b6d 100644
--- a/TSRM/tsrm_virtual_cwd.h
+++ b/TSRM/tsrm_virtual_cwd.h
@@ -233,7 +233,7 @@ typedef struct _virtual_cwd_globals {
#define VCWD_POPEN(command, type) popen(command, type)
#define VCWD_ACCESS(pathname, mode) access(pathname, mode)
-#if !defined(TSRM_WIN32) && !defined(NETWARE)
+#ifdef HAVE_REALPATH
#define VCWD_REALPATH(path, real_path) realpath(path, real_path)
#else
#define VCWD_REALPATH(path, real_path) strcpy(real_path, path)
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 048c723f7a..e08c3c0ee3 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -115,10 +115,6 @@ php_file_globals file_globals;
#include <fnmatch.h>
#endif
-#ifdef __BEOS__
-#define realpath(x,y) strcpy(y,x)
-#endif
-
/* }}} */
/* {{{ ZTS-stuff / Globals / Prototypes */
diff --git a/main/safe_mode.c b/main/safe_mode.c
index 6a0f733eb5..fe19761ae8 100644
--- a/main/safe_mode.c
+++ b/main/safe_mode.c
@@ -31,10 +31,6 @@
#include "SAPI.h"
#include "php_globals.h"
-#ifdef __BEOS__
-#define realpath(x,y) strcpy(y,x)
-#endif
-
/*
* php_checkuid
*