Hello,

the flavor apop of solid-pop3d does not work on sparc64.

The problem is caused by failing detection of big
endianess in md5.c (Linux-specific?):
        #ifdef _LIBC
        #include <endian.h>
        #if __BYTE_ORDER == __BIG_ENDIAN
        #define WORDS_BIGENDIAN 1
        #endif
        #endif

Patch (tested on sparc64 and amd64) is attached.

Please comment.

Thanks,

Michael
--- src/md5.c.orig      Sun Nov  9 15:35:13 2008
+++ src/md5.c   Sun Nov  9 15:47:54 2008
@@ -46,6 +46,10 @@
 #endif
 #endif
 
+#if _BYTE_ORDER == _BIG_ENDIAN
+#define WORDS_BIGENDIAN 1
+#endif 
+
 #ifdef WORDS_BIGENDIAN
 #define SWAP(n)                                                        \
     (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))

Reply via email to