1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

graphics/qt5-imageformats: prepare for graphics/jsaper update

The build fails on FreeBSD 12.3 due to undefined max_align_t:

	In file included from test.cc:2:
	In file included from /usr/local/include/jasper/jasper.h:78:
	In file included from /usr/local/include/jasper/jas_init.h:73:
	In file included from /usr/local/include/jasper/jas_malloc.h:81:
	In file included from /usr/local/include/jasper/jas_thread.h:84:
	In file included from /usr/include/c++/v1/stdlib.h💯
	In file included from /usr/include/c++/v1/math.h:311:
	In file included from /usr/include/c++/v1/type_traits:417:
	/usr/include/c++/v1/cstddef:55:9: error: expected unqualified-id
	using ::max_align_t;
		^

Include cstddef to make it available.

PR:		262039
This commit is contained in:
Tobias C. Berner 2022-03-02 20:27:33 +01:00
parent ebbccfc73c
commit 2bab44dac9

View File

@ -0,0 +1,10 @@
--- src/imageformats/configure.json.orig 2022-03-02 19:21:52 UTC
+++ src/imageformats/configure.json
@@ -19,6 +19,7 @@
"headers": "jasper/jasper.h",
"test": {
"include": [
+ "cstddef",
"string.h",
"jasper/jasper.h"
],