ecore_con: do not load /etc/hosts on Windows.
authorGuillaume Friloux <guillaume.friloux@gmail.com>
Fri, 30 Jan 2015 13:24:35 +0000 (14:24 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 11 Feb 2015 16:03:38 +0000 (17:03 +0100)
src/lib/ecore_con/dns.c

index 9eff2c2..1811dab 100644 (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;