Bug#1021310: libsdl2: FTBFS on hppa - patch attached

Helge Deller deller at gmx.de
Sun Oct 9 11:13:23 BST 2022


As Dave wrote, it's (partly) a 32-bit big-endian issue.

This check in test/testevdev.c

#if ULONG_MAX == 0xFFFFFFFFUL
#   define SwapLongLE(X) SDL_SwapLE32(X)
#else
     /* assume 64-bit */
#   define SwapLongLE(X) SDL_SwapLE64(X)
#endif

always chooses the #else part, because the <limits.h> file
isn't #included and thus ULONG_MAX isn't defined.

Adding:
#include <limits.h>
to the top of test/testevdev.c,
or applying the attached patch fixes the build on hppa (and probably power).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsdl2.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-sdl-maintainers/attachments/20221009/1f890be9/attachment.bin>


More information about the Pkg-sdl-maintainers mailing list