Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2023 16:53:22 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b8948f86c12c - main - devel/libsigrok: Fix build with llvm16
Message-ID:  <202308301653.37UGrMYu092645@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit b8948f86c12cfe8a24ba203634e3a1572eab4ba8
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-30 16:10:52 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-30 16:52:03 +0000

    devel/libsigrok: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 devel/libsigrok/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/libsigrok/Makefile b/devel/libsigrok/Makefile
index d635d2134e31..338cf8cdc89e 100644
--- a/devel/libsigrok/Makefile
+++ b/devel/libsigrok/Makefile
@@ -30,6 +30,10 @@ MAKE_JOBS_UNSAFE=	yes
 
 INSTALL_TARGET=	install-strip
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097
+CFLAGS+=	-D__BSD_VISIBLE -D__XSI_VISIBLE
+.endif
+
 post-patch:
 # libusb can be disabled via src.conf(5), so detect via pkg-config
 	@${REINPLACE_CMD} -e 's/\(libusb-1\.0\) >= 1\.0\.[0-9]*/\1/' \



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