git: 5ada4a93fe96 - main - net/py-pcapy: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 20:49:31 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5ada4a93fe96ca3fb289ff2291370577c57ae1d9

commit 5ada4a93fe96ca3fb289ff2291370577c57ae1d9
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 19:48:02 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 20:48:37 +0000

    net/py-pcapy: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 net/py-pcapy/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/py-pcapy/Makefile b/net/py-pcapy/Makefile
index 63bb506310ef..d1378500f8ee 100644
--- a/net/py-pcapy/Makefile
+++ b/net/py-pcapy/Makefile
@@ -19,6 +19,12 @@ PORTDOCS=	README pcapy.html
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=  -Dregister=
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pcapy*.so