forked from enlightenment/efl
ecore_con: do not load /etc/hosts on Windows.
This commit is contained in:
parent
9cf31fc842
commit
83917a8c64
|
@ -3437,10 +3437,11 @@ struct dns_hosts *dns_hosts_local(int *error_) {
|
||||||
|
|
||||||
if (!(hosts = dns_hosts_open(&error)))
|
if (!(hosts = dns_hosts_open(&error)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
if ((error = dns_hosts_loadpath(hosts, "/etc/hosts")))
|
if ((error = dns_hosts_loadpath(hosts, "/etc/hosts")))
|
||||||
goto error;
|
goto error;
|
||||||
|
#endif
|
||||||
return hosts;
|
return hosts;
|
||||||
error:
|
error:
|
||||||
*error_ = error;
|
*error_ = error;
|
||||||
|
|
Loading…
Reference in New Issue