mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
misc/bb: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
70dac127ed
commit
6cafaa52b4
@ -27,6 +27,10 @@ OPTIONS_DEFINE= DOCS
|
||||
USES+= compiler:gcc-c++11-lib
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
|
||||
CFLAGS+= -Wno-error=incompatible-function-pointer-types
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -E -e "s@#include +<malloc.h>@#include <stdlib.h>@g" \
|
||||
-e 's, REGISTERS \(3\),,g'
|
||||
|
Loading…
Reference in New Issue
Block a user