--- converter/other/jpeg2000/jpeg2ktopam.c.orig	2020-07-22 20:35:17 UTC
+++ converter/other/jpeg2000/jpeg2ktopam.c
@@ -17,6 +17,8 @@
        but plenty of source files of libjasper do to0, and they did not have
        _XOPEN_SOURCE 600, so it would seem to be superfluous here too.
     */
+#include <stddef.h>
+typedef __max_align_t   max_align_t;
 #include <string.h>
 
 #include <jasper/jasper.h>
--- converter/other/jpeg2000/pamtojpeg2k.c.orig	2020-07-22 20:35:17 UTC
+++ converter/other/jpeg2000/pamtojpeg2k.c
@@ -18,6 +18,8 @@
        _XOPEN_SOURCE 600, so it would seem to be superfluous here too.
     */
 
+#include <stddef.h>
+typedef __max_align_t   max_align_t;
 #include <string.h>
 
 #include <jasper/jasper.h>
