fix preprocessor abuse for gcc3
This commit is contained in:
parent
32f593bbc3
commit
22e751884c
14
security/integrit/patches/patch-gnupg_md5_c
Normal file
14
security/integrit/patches/patch-gnupg_md5_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-gnupg_md5_c,v 1.1 2004/01/28 22:16:12 naddy Exp $
|
||||
--- gnupg/md5.c.orig 2004-01-28 22:57:29.000000000 +0100
|
||||
+++ gnupg/md5.c 2004-01-28 22:57:45.000000000 +0100
|
||||
@@ -330,8 +330,8 @@ void md5_final( MD5_CONTEXT *hd )
|
||||
|
||||
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:
|
Loading…
Reference in New Issue
Block a user