diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-06-06 00:58:17 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2023-06-06 01:17:55 +0000 |
commit | afa4385e4452e8a1395c3f05367a9afc7a1f8e45 (patch) | |
tree | 2e780fed083930e374c65666d4e75016a8935c19 | |
parent | b848aeb67d4521d932788606bfa01dc000b30df6 (diff) | |
download | ports-afa4385e4452e8a1395c3f05367a9afc7a1f8e45.tar.gz ports-afa4385e4452e8a1395c3f05367a9afc7a1f8e45.zip |
x11-toolkits/wlroots-devel: unbreak on FreeBSD < 13 after 0efbfe7a7c49
../render/gles2/renderer.c:561:16: error: use of undeclared identifier 'CLOCK_MONOTONIC'
clock_gettime(CLOCK_MONOTONIC, &timer->cpu_start);
^
-rw-r--r-- | x11-toolkits/wlroots-devel/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/x11-toolkits/wlroots-devel/Makefile b/x11-toolkits/wlroots-devel/Makefile index 408024a73cb4..d2b4f4c35c4a 100644 --- a/x11-toolkits/wlroots-devel/Makefile +++ b/x11-toolkits/wlroots-devel/Makefile @@ -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> |