From 235cf8b3e4c6f1ff94f20fdf3b0a3d19d62a041a Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 6 Aug 2023 23:16:09 +0200 Subject: net-mgmt/irrtoolset: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net-mgmt/irrtoolset/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net-mgmt/irrtoolset/Makefile') diff --git a/net-mgmt/irrtoolset/Makefile b/net-mgmt/irrtoolset/Makefile index 0cbce42f76cf..ef787e63c27b 100644 --- a/net-mgmt/irrtoolset/Makefile +++ b/net-mgmt/irrtoolset/Makefile @@ -22,4 +22,10 @@ PLIST_FILES= bin/rpslcheck bin/peval bin/rtconfig \ man/man1/rtconfig.1.gz man/man1/peval.1.gz \ man/man1/rpslcheck.1.gz man/man1/irrtoolset-errors.1.gz +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Dregister= +.endif + .include -- cgit v1.2.3