1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

graphics/imlib2: fix build on big-endian architectures

l, used in big-endian ifdef, is not declared by default:
loader_argb.c:55: error: 'l' undeclared (first use in this function)
This commit is contained in:
Piotr Kubaj 2020-08-08 15:42:55 +00:00
parent 12c4cfcfc6
commit ff09500154
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544503

View File

@ -0,0 +1,12 @@
--- src/modules/loaders/loader_argb.c.orig 2020-08-08 14:27:16 UTC
+++ src/modules/loaders/loader_argb.c
@@ -7,6 +7,9 @@ load2(ImlibImage * im, int load_data)
int w = 0, h = 0, alpha = 0;
DATA32 *ptr;
int y;
+#ifdef WORDS_BIGENDIAN
+ int l;
+#endif
rc = LOAD_FAIL;