diff -r 333964c621f1 -r cb59d6afeb61 openpkg/beecrypt.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openpkg/beecrypt.patch Tue Jan 06 23:40:39 2009 +0100 @@ -0,0 +1,62 @@ +Index: gas/aesopt.x86.m4 +--- gas/aesopt.x86.m4.orig 2004-06-13 13:37:23 +0200 ++++ gas/aesopt.x86.m4 2004-07-28 20:02:07 +0200 +@@ -134,6 +134,9 @@ + pxor 6144(%esi,%edx,8),s0 + ') + ++') ++ifdef(`USE_MMX',` ++ + define(`elr',` + movd 0(%ebp),s0 + movd t0,%eax +@@ -253,6 +256,9 @@ + ') + + ++') ++ifdef(`USE_MMX',` ++ + C_FUNCTION_BEGIN(aesEncrypt) + pushl %edi + pushl %esi +@@ -364,6 +370,9 @@ + pxor 6144(%esi,%edx,8),t2 + ') + ++') ++ifdef(`USE_MMX',` ++ + define(`dsft',` + movd $1+ 0(%ebp),s0 + movd t0,%eax +@@ -490,6 +499,9 @@ + pxor t3,s2 + ') + ++') ++ifdef(`USE_MMX',` ++ + define(`dblock',` + sxrk + +Index: gnu.h.in +--- gnu.h.in.orig 2004-12-19 21:18:48 +0100 ++++ gnu.h.in 2005-03-08 19:34:03 +0100 +@@ -48,15 +48,6 @@ + @TYPEDEF_UINT32_T@ + @TYPEDEF_UINT64_T@ + +-#if defined(__GNUC__) +-# if !defined(__GNUC_PREREQ__) +-# define __GNUC_PREREQ__(maj, min) (__GNUC__ > (maj) || __GNUC__ == (maj) && __GNUC_MINOR__ >= (min)) +-# endif +-#else +-# define __GNUC__ 0 +-# define __GNUC_PREREQ__(maj, min) 0 +-#endif +- + /* WARNING: overriding this value is dangerous; some assembler routines + * make assumptions about the size set by the configure script + */