git: cef38de2695b - main - graphics/cptutils: fix build on big-endian architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Oct 2023 09:39:28 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cef38de2695ba6494fcc5260a412dd81d0b4643a
commit cef38de2695ba6494fcc5260a412dd81d0b4643a
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-09-29 18:24:02 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-10-01 09:39:17 +0000
graphics/cptutils: fix build on big-endian architectures
grd3-write.c:66:12: error: use of undeclared identifier 'uint16_t'
u[i] = htobe16(grd3->ver[i]);
^
---
graphics/cptutils/files/patch-src_lib_grd3-write.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/graphics/cptutils/files/patch-src_lib_grd3-write.c b/graphics/cptutils/files/patch-src_lib_grd3-write.c
new file mode 100644
index 000000000000..8b1b970aa4c5
--- /dev/null
+++ b/graphics/cptutils/files/patch-src_lib_grd3-write.c
@@ -0,0 +1,11 @@
+--- src/lib/grd3-write.c.orig 2023-09-29 18:20:02 UTC
++++ src/lib/grd3-write.c
+@@ -4,6 +4,8 @@
+
+ #include "cptutils/grd3-write.h"
+
++#include <sys/types.h>
++
+ #if defined HAVE_ENDIAN_H
+ #include <endian.h>
+ #elif defined HAVE_SYS_ENDIAN_H