Skip to content

Commit

Permalink
net/messagelib: Fix build with llvm 16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
  • Loading branch information
juikim committed Jun 25, 2023
1 parent 0a04ec0 commit 97bb487
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion net/messagelib/Makefile
Expand Up @@ -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>

0 comments on commit 97bb487

Please sign in to comment.