HAVE_REALPATH define, which is set if realpath() is avaliable. This patch
also resolves bug #18868.
#include "tsrm_nw.h"
#endif
-#ifdef __BEOS__
+#ifndef HAVE_REALPATH
#define realpath(x,y) strcpy(y,x)
#endif
#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)
#include <fnmatch.h>
#endif
-#ifdef __BEOS__
-#define realpath(x,y) strcpy(y,x)
-#endif
-
/* }}} */
/* {{{ ZTS-stuff / Globals / Prototypes */
#include "SAPI.h"
#include "php_globals.h"
-#ifdef __BEOS__
-#define realpath(x,y) strcpy(y,x)
-#endif
-
/*
* php_checkuid
*