git: dfe51d5b0e9e - main - games/crossfire-client: fix build on big-endian

Piotr Kubaj pkubaj at FreeBSD.org
Wed Aug 18 00:26:25 UTC 2021


The branch main has been updated by pkubaj:

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

commit dfe51d5b0e9ee4b7d67b9a8c649a4d6184712adf
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-08-18 00:26:20 +0000
Commit:     Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-08-18 00:26:20 +0000

    games/crossfire-client: fix build on big-endian
    
    /wrkdirs/usr/ports/games/crossfire-client/work/crossfire-client-1.75.0/gtk-v2/src/image.c:167:31: error: use of undeclared identifier 'ny'
            for (i=0; i < width * ny; i+= 4) {
                                  ^
---
 games/crossfire-client/files/patch-gtk-v2_src_image.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/games/crossfire-client/files/patch-gtk-v2_src_image.c b/games/crossfire-client/files/patch-gtk-v2_src_image.c
new file mode 100644
index 000000000000..36357be0280f
--- /dev/null
+++ b/games/crossfire-client/files/patch-gtk-v2_src_image.c
@@ -0,0 +1,11 @@
+--- gtk-v2/src/image.c.orig	2021-08-18 00:18:54 UTC
++++ gtk-v2/src/image.c
+@@ -164,7 +164,7 @@ static void create_map_image(guint8 *data, PixmapInfo 
+             *p = (g << 8) | (g << 16) | (g << 24) | *(l + 3);
+         }
+ 
+-        for (i=0; i < width * ny; i+= 4) {
++        for (i=0; i < width * height; i+= 4) {
+             guint32 *tmp;
+ 
+             /*


More information about the dev-commits-ports-main mailing list