Skip to content

Commit

Permalink
devel/libsigrok: Fix build with llvm16
Browse files Browse the repository at this point in the history
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 30, 2023
1 parent d1d44d6 commit b8948f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devel/libsigrok/Makefile
Expand Up @@ -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/' \
Expand Down

0 comments on commit b8948f8

Please sign in to comment.