]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
syslogd: fix WITHOUT_INET builds
authorArtem Khramov <akhramov@pm.me>
Sat, 12 Jun 2021 17:21:13 +0000 (20:21 +0300)
committerWarner Losh <imp@FreeBSD.org>
Sun, 13 Jun 2021 04:25:35 +0000 (22:25 -0600)
commitf06fa6f88733d709a5f9dd3a27b1a08571e49e6b
treeb973cc8505b0b4bd261a3941bcbd0b3e3e0a3cd0
parent7cf9caf294ce692b8c01b201fe00b65a8a413937
syslogd: fix WITHOUT_INET builds

Since 2d82b47 syslogd can't be built with `WITHOUT_INET` or
`WITHOUT_INET6` build variables set, because `iovlist_truncate` is not
defined but used.

This change wraps the problematic `iovlist_truncate` call within ifdef
directive.  It's compiled out in this situation...

Pull Request: https://github.com/freebsd/freebsd-src/pull/475
Reviewed by: imp@ (commit message slightly tweaked)
usr.sbin/syslogd/syslogd.c