Skip to content

Commit

Permalink
x11-toolkits/wlroots-devel: unbreak on FreeBSD < 13 after 0efbfe7
Browse files Browse the repository at this point in the history
../render/gles2/renderer.c:561:16: error: use of undeclared identifier 'CLOCK_MONOTONIC'
        clock_gettime(CLOCK_MONOTONIC, &timer->cpu_start);
                      ^
  • Loading branch information
jbeich committed Jun 6, 2023
1 parent b848aeb commit afa4385
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x11-toolkits/wlroots-devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,12 @@ post-patch:
# Extract (snapshot) version from the port instead of meson.build
@${REINPLACE_CMD} "/STR/s/meson.project_version()/'${DISTVERSIONFULL}'/" \
${WRKSRC}/include/wlr/meson.build
# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31
# https://cgit.freebsd.org/src/commit/?id=d7535fb3e3cb
@if [ ${OPSYS} = FreeBSD -a ${OSVERSION} -lt 1300515 ]; then \
${REINPLACE_CMD} -e '/POSIX/s/199309/200112/' \
${WRKSRC}/render/gles2/pass.c \
${WRKSRC}/render/gles2/renderer.c; \
fi

.include <bsd.port.mk>

0 comments on commit afa4385

Please sign in to comment.