63f0477111
- for now, don't use 128-bit arithmetics on amd64, as a work-around for the gcc bug. gcc3.3 mangles arguments for __divti3, and amd64 hangs on non-DIV_SMALL, when passing correct arguments. this is what silc-toolkit and silc-server use, too unbreaks amd64 tested by brad@ initial diff tested by sthen@ "definitely fine with me" brad@
13 lines
430 B
Plaintext
13 lines
430 B
Plaintext
$OpenBSD: patch-lib_silcmath_tma_h,v 1.1 2008/07/11 01:47:12 martynas Exp $
|
|
--- lib/silcmath/tma.h.orig Thu May 3 11:13:16 2007
|
|
+++ lib/silcmath/tma.h Fri Feb 29 23:36:31 2008
|
|
@@ -51,7 +51,7 @@ extern "C" {
|
|
|
|
|
|
/* detect 64-bit mode if possible */
|
|
-#if defined(__x86_64__)
|
|
+#if defined(__x86_64__) && !defined(__OpenBSD__)
|
|
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
|
|
#define MP_64BIT
|
|
#endif
|