git: b105df620a22 - main - graphics/netpbm: Fix build with jasper 3.0.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 16 Apr 2022 04:25:14 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b105df620a2268a20151d7c44cd572456a5bbd5e

commit b105df620a2268a20151d7c44cd572456a5bbd5e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-16 04:15:01 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-16 04:19:51 +0000

    graphics/netpbm: Fix build with jasper 3.0.2
    
    Approved by:    leres (maintainer)
---
 graphics/netpbm/files/patch-jasper | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/graphics/netpbm/files/patch-jasper b/graphics/netpbm/files/patch-jasper
new file mode 100644
index 000000000000..2151239155d8
--- /dev/null
+++ b/graphics/netpbm/files/patch-jasper
@@ -0,0 +1,22 @@
+--- 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>