Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2021 00:26:25 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: dfe51d5b0e9e - main - games/crossfire-client: fix build on big-endian
Message-ID:  <202108180026.17I0QPGL031002@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

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

commit dfe51d5b0e9ee4b7d67b9a8c649a4d6184712adf
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-08-18 00:26:20 +0000
Commit:     Piotr Kubaj <pkubaj@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;
+ 
+             /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108180026.17I0QPGL031002>