diff --git a/compat/mingw.c b/compat/mingw.c
index 075448d2455f8237e867bd4ff82eec7867442b27..4e559bdc93dbee413fd574168fd382e4682a0092 100644 (file)
--- a/compat/mingw.c
+++ b/compat/mingw.c
return result;
}
+#undef getcwd
+char *mingw_getcwd(char *pointer, int len)
+{
+ int i;
+ char *ret = getcwd(pointer, len);
+ if (!ret)
+ return ret;
+ for (i = 0; pointer[i]; i++)
+ if (pointer[i] == '\\')
+ pointer[i] = '/';
+ return ret;
+}
+
struct passwd *getpwuid(int uid)
{
static struct passwd p;