patch-src_aircrack-ng_c 790 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_aircrack-ng_c,v 1.2 2012/08/20 11:50:59 pascal Exp $
  2. --- src/aircrack-ng.c.orig Fri Apr 9 16:50:14 2010
  3. +++ src/aircrack-ng.c Mon Jul 23 18:31:48 2012
  4. @@ -3852,7 +3852,7 @@ int crack_wpa_thread( void *arg )
  5. int i, j, len, slen;
  6. int nparallel = 1;
  7. -#if defined(__i386__) || defined(__x86_64__)
  8. +#if (defined(__i386__) || defined(__x86_64__)) && !defined(__PIC__)
  9. // Check for SSE2, with SSE2 the algorithm works with 4 keys
  10. if (shasse2_cpuid()>=2)
  11. nparallel = 4;
  12. @@ -4626,7 +4626,7 @@ int main( int argc, char *argv[] )
  13. case 'u' :
  14. printf("Nb CPU detected: %d ", cpu_count);
  15. -#if defined(__i386__) || defined(__x86_64__)
  16. +#if (defined(__i386__) || defined(__x86_64__)) && !defined(__PIC__)
  17. unused = shasse2_cpuid();
  18. if (unused == 1) {