Package: unalz
Severity: important
Version: 0.55-2
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweaks, see bellow.
The patch should fix also hurd.
It would also be nice if you can ask upstream
to include this changes.
Thanks in advance
Petr
--- UnAlz.cpp~ 2006-12-04 07:29:09.000000000 +0100
+++ UnAlz.cpp 2006-12-04 07:29:09.000000000 +0100
@@ -26,7 +26,7 @@
# include <iconv.h>
#endif
-#ifdef __linux__ // __BYTE_ORDER °ĄÁŽżŔąâ
+#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
# include <errno.h> // iconv.h ś§šŽżĄ ÇĘżä
#endif
@@ -64,7
+64,7 @@
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
# include <endian.h>
# if __BYTE_ORDER == __BIG_ENDIAN
inline UINT16 unalz_le16toh(UINT16 a){return swapint16(a);}