summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/dns.c
diff options
context:
space:
mode:
authorNicolas Aguirre <aguirre.nicolas@gmail.com>2015-01-30 14:23:18 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 17:46:17 +0100
commit242e108e37bf24d3bc4d4e359abd0e1b61a07ad0 (patch)
treefc7ca9874043e2b5021354c68d5627e8aa73c454 /src/lib/ecore_con/dns.c
parentefecbef773633653949e824d6a3a37576c191bd7 (diff)
ecore_con: do not try to load /etc/resolv.conf when on windows.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_con/dns.c')
-rw-r--r--src/lib/ecore_con/dns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_con/dns.c b/src/lib/ecore_con/dns.c
index 1811dab..b524427 100644
--- a/src/lib/ecore_con/dns.c
+++ b/src/lib/ecore_con/dns.c
@@ -3747,6 +3747,7 @@ struct dns_resolv_conf *dns_resconf_local(int *error_) {
3747 if (!(resconf = dns_resconf_open(&error))) 3747 if (!(resconf = dns_resconf_open(&error)))
3748 goto error; 3748 goto error;
3749 3749
3750#ifndef _WIN32
3750 if ((error = dns_resconf_loadpath(resconf, "/etc/resolv.conf"))) 3751 if ((error = dns_resconf_loadpath(resconf, "/etc/resolv.conf")))
3751 goto error; 3752 goto error;
3752 3753
@@ -3754,6 +3755,7 @@ struct dns_resolv_conf *dns_resconf_local(int *error_) {
3754 if (error != ENOENT) 3755 if (error != ENOENT)
3755 goto error; 3756 goto error;
3756 } 3757 }
3758#endif
3757 3759
3758 return resconf; 3760 return resconf;
3759error: 3761error: