git: 97bb4872ef4e - main - net/messagelib: Fix build with llvm 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Jun 2023 04:50:46 UTC
The branch main has been updated by jkim: URL: https://cgit.FreeBSD.org/ports/commit/?id=97bb4872ef4e97eb157f8063ddbe4b83f3795ddd commit 97bb4872ef4e97eb157f8063ddbe4b83f3795ddd Author: Jung-uk Kim <jkim@FreeBSD.org> AuthorDate: 2023-06-25 04:48:38 +0000 Commit: Jung-uk Kim <jkim@FreeBSD.org> CommitDate: 2023-06-25 04:48:38 +0000 net/messagelib: Fix build with llvm 16 Approved by: portmgr (blanket) --- net/messagelib/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/messagelib/Makefile b/net/messagelib/Makefile index 2e68778bd2dc..eca7bc2b672b 100644 --- a/net/messagelib/Makefile +++ b/net/messagelib/Makefile @@ -42,4 +42,10 @@ OPTIONS_SUB= yes INOTIFY_DESC= Filesystem alteration notifications using inotify INOTIFY_LIB_DEPENDS= libinotify.so:devel/libinotify -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 +CXXFLAGS+= -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION +.endif + +.include <bsd.port.post.mk>