aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-30 16:10:52 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-30 16:52:03 +0000
commitb8948f86c12cfe8a24ba203634e3a1572eab4ba8 (patch)
tree043bb3d897493ba70d1f1ddd80cfd6e8f847f8bd
parentd1d44d6b556245339fcfc04912a42be8825e00cd (diff)
downloadports-b8948f86c12cfe8a24ba203634e3a1572eab4ba8.tar.gz
ports-b8948f86c12cfe8a24ba203634e3a1572eab4ba8.zip
devel/libsigrok: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
-rw-r--r--devel/libsigrok/Makefile4
1 files changed, 4 insertions, 0 deletions
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/' \