From 4d6534622e55bee459837893cb8d7eab40d6168c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 9 Oct 2010 17:11:28 +0000 Subject: add realpath compatability for windows svn path=/trunk/netsurf/; revision=10873 --- utils/utils.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'utils/utils.c') diff --git a/utils/utils.c b/utils/utils.c index 346fd5585..c82bc2c74 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -490,3 +490,18 @@ int uname(struct utsname *buf) { return 0; } #endif + +#ifndef HAVE_REALPATH +char *realpath(const char *path, char *resolved_path) +{ + char *ret; + if (resolved_path == NULL) { + ret=strdup(path); + } else { + ret = resolved_path; + strcpy(resolved_path, path); + } + return ret; +} + +#endif -- cgit v1.2.3