瀏覽代碼

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>
Bernhard Reutner-Fischer 15 年之前
父節點
當前提交
03c4f490a6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/inet/resolv.c

+ 2 - 0
libc/inet/resolv.c

@@ -1539,7 +1539,9 @@ FILE * __open_etc_hosts(void)
 {
 {
 	FILE * fp;
 	FILE * fp;
 	if ((fp = fopen("/etc/hosts", "r")) == NULL) {
 	if ((fp = fopen("/etc/hosts", "r")) == NULL) {
+#ifdef FALLBACK_TO_CONFIG_RESOLVCONF
 		fp = fopen("/etc/config/hosts", "r");
 		fp = fopen("/etc/config/hosts", "r");
+#endif
 	}
 	}
 	return fp;
 	return fp;
 }
 }