ecore_con: do not try to load /etc/resolv.conf when on windows.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Nicolas Aguirre 2015-01-30 14:23:18 +01:00 committed by Cedric BAIL
parent efecbef773
commit 242e108e37
1 changed files with 2 additions and 0 deletions

View File

@ -3747,6 +3747,7 @@ struct dns_resolv_conf *dns_resconf_local(int *error_) {
if (!(resconf = dns_resconf_open(&error)))
goto error;
#ifndef _WIN32
if ((error = dns_resconf_loadpath(resconf, "/etc/resolv.conf")))
goto error;
@ -3754,6 +3755,7 @@ struct dns_resolv_conf *dns_resconf_local(int *error_) {
if (error != ENOENT)
goto error;
}
#endif
return resconf;
error: