forked from enlightenment/efl
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:
parent
efecbef773
commit
242e108e37
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue