Re: git: 171a7bbfc048 - main - tcpdump: fix build with WITHOUT_PF=1
- In reply to: Gleb Smirnoff : "git: 171a7bbfc048 - main - tcpdump: fix build with WITHOUT_PF=1"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Jun 2023 07:32:59 UTC
On Wed, 14 Jun 2023 03:59:04 GMT
Gleb Smirnoff <glebius@FreeBSD.org> wrote:
> The branch main has been updated by glebius:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=171a7bbfc04885150401ab64d96793373a8b2061
>
> commit 171a7bbfc04885150401ab64d96793373a8b2061
> Author: Gleb Smirnoff <glebius@FreeBSD.org>
> AuthorDate: 2023-06-14 03:58:36 +0000
> Commit: Gleb Smirnoff <glebius@FreeBSD.org>
> CommitDate: 2023-06-14 03:58:36 +0000
>
> tcpdump: fix build with WITHOUT_PF=1
>
> Fixes: ee67461e56828dd1f8de165947ba83f6d9148a87
> ---
> contrib/tcpdump/print.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/tcpdump/print.c b/contrib/tcpdump/print.c
> index 9c0ab8622de1..42a4548e8689 100644
> --- a/contrib/tcpdump/print.c
> +++ b/contrib/tcpdump/print.c
> @@ -185,7 +185,7 @@ static const struct printer printers[] = {
> #ifdef DLT_LOOP
> { null_if_print, DLT_LOOP },
> #endif
> -#ifdef DLT_PFLOG
> +#if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
> { pflog_if_print, DLT_PFLOG },
> #endif
> #ifdef DLT_PKTAP
>
Thank you, Gleb!
--
Gary Jennejohn