diff options
author | Nicolas Aguirre <aguirre.nicolas@gmail.com> | 2015-01-30 14:23:18 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-03-26 17:46:17 +0100 |
commit | 242e108e37bf24d3bc4d4e359abd0e1b61a07ad0 (patch) | |
tree | fc7ca9874043e2b5021354c68d5627e8aa73c454 | |
parent | efecbef773633653949e824d6a3a37576c191bd7 (diff) | |
download | efl-242e108e37bf24d3bc4d4e359abd0e1b61a07ad0.tar.gz |
ecore_con: do not try to load /etc/resolv.conf when on windows.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r-- | src/lib/ecore_con/dns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_con/dns.c b/src/lib/ecore_con/dns.c index 1811dab42e..b52442704d 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_) { if (!(resconf = dns_resconf_open(&error))) goto error; +#ifndef _WIN32 if ((error = dns_resconf_loadpath(resconf, "/etc/resolv.conf"))) goto error; @@ -3754,6 +3755,7 @@ struct dns_resolv_conf *dns_resconf_local(int *error_) { if (error != ENOENT) goto error; } +#endif return resconf; error: |