summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/dns.c
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2015-01-30 14:24:35 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-11 17:03:38 +0100
commit83917a8c6430e57279c01de801356c69565169a7 (patch)
treedde0cbf554417487e1e6c77476dac28c9206901c /src/lib/ecore_con/dns.c
parent9cf31fc842361593a7ff4f48d70ce63ef3552a46 (diff)
ecore_con: do not load /etc/hosts on Windows.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_con/dns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ecore_con/dns.c b/src/lib/ecore_con/dns.c
index 9eff2c20af..1811dab42e 100644
--- a/src/lib/ecore_con/dns.c
+++ b/src/lib/ecore_con/dns.c
@@ -3437,10 +3437,11 @@ struct dns_hosts *dns_hosts_local(int *error_) {
3437 3437
3438 if (!(hosts = dns_hosts_open(&error))) 3438 if (!(hosts = dns_hosts_open(&error)))
3439 goto error; 3439 goto error;
3440 3440
3441#ifndef _WIN32
3441 if ((error = dns_hosts_loadpath(hosts, "/etc/hosts"))) 3442 if ((error = dns_hosts_loadpath(hosts, "/etc/hosts")))
3442 goto error; 3443 goto error;
3443 3444#endif
3444 return hosts; 3445 return hosts;
3445error: 3446error:
3446 *error_ = error; 3447 *error_ = error;