From 8cd3cf4375e9fb63c25cf1065b253b2ff1b6ef9d Mon Sep 17 00:00:00 2001 From: kn Date: Thu, 25 Feb 2021 00:38:59 +0000 Subject: [PATCH] Fix SMALL build OK deraadt --- sbin/resolvd/resolvd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sbin/resolvd/resolvd.c b/sbin/resolvd/resolvd.c index 0db2b6f3497..dbf6787f0a9 100644 --- a/sbin/resolvd/resolvd.c +++ b/sbin/resolvd/resolvd.c @@ -168,7 +168,9 @@ main(int argc, char *argv[]) debug = 1; break; case 'v': +#ifndef SMALL verbose++; +#endif break; default: usage(); @@ -191,10 +193,12 @@ main(int argc, char *argv[]) if (!debug) daemon(0, 0); +#ifndef SMALL if (!debug) { openlog("resolvd", LOG_PID|LOG_NDELAY, LOG_DAEMON); logger = &syslogger; } +#endif if ((routesock = socket(AF_ROUTE, SOCK_RAW, 0)) == -1) lerr(1, "route socket"); @@ -583,7 +587,11 @@ regen_resolvconf(char *why) ifnam = if_indextoname(learned[i].if_index, ifnambuf); dprintf(fd, "%snameserver %s # resolvd: %s\n", +#ifndef SMALL unwind_running ? "#" : "", +#else + "", +#endif learned[i].ip, ifnam ? ifnam : ""); } -- 2.20.1