I don't know about Solaris but byteswap.h is on Debian Sparc, so the #ifdef PPC isn't needed. I'm fairly sure that'll fix a longstanding problem, thanks Chris for your work on PowerPC :) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=103732&repeatmerged=yes Would it be possible to make another minor release soon, or shall I just integrate this into 1.5.2 for debian? Daniel (who is hopefully back in the loop again)
--- swbyteswap.h Tue Aug 28 11:07:46 2001 +++ swbyteswap.h.orig Tue Aug 28 11:07:24 2001 @@ -28,11 +28,19 @@ #define SWAP16(x) NXSwapLittleShortToHost(x) #else +#ifdef PPC #include <byteswap.h> #define SWAP32(x) bswap_32(x) #define SWAP16(x) bswap_16(x) +#else + +#include <sys/pctypes.h> +#define SWAP32(x) lelong(x) +#define SWAP16(x) leshort(x) + +#endif #endif #else //little endian