summaryrefslogtreecommitdiff
path: root/libc/inet/resolv.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-01-23 21:29:19 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-01-23 21:29:19 +0100
commit03c4f490a60c1535ee9a9b87c54b3e3531d89ecf (patch)
tree9f2c9e825c56120ed67af1db3464f098c7d96771 /libc/inet/resolv.c
parent8df555e6f7c3f27c07ef0f45759b7f5a38fe67f9 (diff)
libc/inet: mark other odd /etc/conf/ spot
and wrap it in FALLBACK_TO_CONFIG_RESOLVCONF too. -24b Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/inet/resolv.c')
-rw-r--r--libc/inet/resolv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index abb84df79..4087f8db8 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1539,7 +1539,9 @@ FILE * __open_etc_hosts(void)
{
FILE * fp;
if ((fp = fopen("/etc/hosts", "r")) == NULL) {
+#ifdef FALLBACK_TO_CONFIG_RESOLVCONF
fp = fopen("/etc/config/hosts", "r");
+#endif
}
return fp;
}