patch-src_common_h 442 B

12345678910111213
  1. $OpenBSD: patch-src_common_h,v 1.2 2012/08/20 11:50:59 pascal Exp $
  2. --- src/common.h.orig Mon Jul 23 18:27:36 2012
  3. +++ src/common.h Mon Jul 23 18:27:57 2012
  4. @@ -30,7 +30,7 @@
  5. #define CPUID_SSE2_AVAILABLE 2
  6. #define CPUID_NOTHING_AVAILABLE 0
  7. -#if defined(__i386__) || defined(__x86_64__)
  8. +#if (defined(__i386__) || defined(__x86_64__)) && !defined(__PIC__)
  9. #define CPUID() shasse2_cpuid()
  10. #else
  11. #define CPUID() CPUID_NOTHING_AVAILABLE