Description: fix byteorder check with modern compilers
 The configure byteorder test calls exit() without including <stdlib.h>.
 GCC 14 makes implicit function declarations a hard error, so the test
 fails to compile, configure reports "normal" (big-endian) and
 LAME_ENDIAN is never defined on little-endian machines. libami then
 reads .info icon files with the wrong byte order, the WB_DISKMAGIC check
 fails, and amiwm aborts with: Cannot load default icon "def_tool.info".
Author: Alex Myczko <tar@debian.org>
Forwarded: no
Last-Update: 2026-11-26
---
Index: amiwm-0.22pl3/configure
===================================================================
--- amiwm-0.22pl3.orig/configure
+++ amiwm-0.22pl3/configure
@@ -6343,6 +6343,7 @@ else case e in #(
   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int main()
 {
   union { int i; char c[sizeof(int)]; } v;
Index: amiwm-0.22pl3/configure.in
===================================================================
--- amiwm-0.22pl3.orig/configure.in
+++ amiwm-0.22pl3/configure.in
@@ -100,6 +100,7 @@ fi
 
 AC_MSG_CHECKING([byteorder])
 AC_TRY_RUN([
+#include <stdlib.h>
 int main()
 {
   union { int i; char c[sizeof(int)]; } v;
