Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2023 03:59:04 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 171a7bbfc048 - main - tcpdump: fix build with WITHOUT_PF=1
Message-ID:  <202306140359.35E3x4fJ060841@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306140359.35E3x4fJ060841>