summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-03-01 16:57:50 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-03-01 16:57:50 +0000
commit11df82228cc08873bfafaf9655952000bd9fa978 (patch)
treecc2c60a66bfaa0541b3ada5d0508a4ea7a43e229 /net-wireless/aircrack-ng/files
parentOops, Manifest fix (diff)
downloadgentoo-2-11df82228cc08873bfafaf9655952000bd9fa978.tar.gz
gentoo-2-11df82228cc08873bfafaf9655952000bd9fa978.tar.bz2
gentoo-2-11df82228cc08873bfafaf9655952000bd9fa978.zip
Bump to 1.0_rc2, fixes #256545. Patch by toogle <commando2004@yandex.ru>.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/aircrack-ng/files')
-rw-r--r--net-wireless/aircrack-ng/files/sha-compile-fix-64bit.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/net-wireless/aircrack-ng/files/sha-compile-fix-64bit.patch b/net-wireless/aircrack-ng/files/sha-compile-fix-64bit.patch
new file mode 100644
index 000000000000..e47d718acfa0
--- /dev/null
+++ b/net-wireless/aircrack-ng/files/sha-compile-fix-64bit.patch
@@ -0,0 +1,39 @@
+Index: src/sha1-sse2.S
+===================================================================
+--- src/sha1-sse2.S (revision 1365)
++++ src/sha1-sse2.S (working copy)
+@@ -413,11 +413,16 @@
+ ret
+ do_cpuid:
+ #endif
+-
++
++#ifdef __x86_64__
++ push %rbx
++ push %rcx
++ push %rdx
++#else
+ push %ebx
+ push %ecx
+ push %edx
+-
++#endif
+ movl $1, %eax
+ cpuid
+
+@@ -438,9 +443,15 @@
+ movl $0, %eax
+
+ cpuid_exit:
++#ifdef __x86_64__
++ pop %rdx
++ pop %rcx
++ pop %rbx
++#else
+ pop %edx
+ pop %ecx
+ pop %ebx
++#endif
+ ret
+ #endif
+