OSDN Git Service

libc/inet: mark other odd /etc/conf/ spot
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 23 Jan 2010 20:29:19 +0000 (21:29 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 23 Jan 2010 20:29:19 +0000 (21:29 +0100)
and wrap it in FALLBACK_TO_CONFIG_RESOLVCONF too. -24b

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/resolv.c

index abb84df..4087f8d 100644 (file)
@@ -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;
 }