]> git.pld-linux.org Git - packages/aria.git/blobdiff - aria-gcc.patch
- cpp fix in bigendian code
[packages/aria.git] / aria-gcc.patch
diff --git a/aria-gcc.patch b/aria-gcc.patch
new file mode 100644 (file)
index 0000000..700b1fd
--- /dev/null
@@ -0,0 +1,13 @@
+--- aria-1.0.0/src/md5.c.orig  Sat May 19 20:38:59 2001
++++ aria-1.0.0/src/md5.c       Tue Mar 30 11:51:34 2004
+@@ -291,8 +291,8 @@
+     p = hd->buf;
+   #ifdef BIG_ENDIAN_HOST
+-    #define X(a) do { *p++ = hd->##a    ; *p++ = hd->##a >> 8;      \
+-                    *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
++    #define X(a) do { *p++ = hd->a      ; *p++ = hd->a >> 8;      \
++                    *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while(0)
+   #else /* little endian */
+     /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
+     /* Unixware's cpp doesn't like the above construct so we do it his way:
This page took 0.042684 seconds and 4 git commands to generate.