ecore_con: do not load /etc/hosts on Windows.

This commit is contained in:
Guillaume Friloux 2015-01-30 14:24:35 +01:00 committed by Cedric BAIL
parent 9cf31fc842
commit 83917a8c64
1 changed files with 3 additions and 2 deletions

View File

@ -3437,10 +3437,11 @@ struct dns_hosts *dns_hosts_local(int *error_) {
if (!(hosts = dns_hosts_open(&error)))
goto error;
#ifndef _WIN32
if ((error = dns_hosts_loadpath(hosts, "/etc/hosts")))
goto error;
#endif
return hosts;
error:
*error_ = error;