| diff --git a/xmlIO.c b/xmlIO.c | |
| --- a/xmlIO.c | |
| +++ b/xmlIO.c | |
| @@ -3649,10 +3649,12 @@ xmlParserGetDirectory(const char *filename) { | |
| else *cur = 0; | |
| ret = xmlMemStrdup(dir); | |
| } else { | |
| +#ifndef __native_client__ | |
| if (getcwd(dir, 1024) != NULL) { | |
| dir[1023] = 0; | |
| ret = xmlMemStrdup(dir); | |
| } | |
| +#endif | |
| } | |
| return(ret); | |
| #undef IS_XMLPGD_SEP |