pkgsrc/multimedia/mjpegtools/patches/patch-ab
drochner 39b95b1059 make this build on amd64/current, from Martijn van Buul per PR pkg/33769
(it builds for me on amd64/3.0, but the effect is easily verified by
disassembling -- basically it is insignificant because "cpuid" always
yields just 32 bit, but if newer compilers complain something must be done)
2006-06-21 18:29:18 +00:00

13 lines
431 B
Text

$NetBSD: patch-ab,v 1.6 2006/06/21 18:29:18 drochner Exp $
--- utils/cpu_accel.c.orig 2006-06-21 20:18:47.000000000 +0200
+++ utils/cpu_accel.c
@@ -117,7 +117,7 @@ static int x86_accel (void)
/* Slightly weirdified cpuid that preserves the ebx and edi required
by gcc for PIC offset table and frame pointer */
-#ifdef __LP64__
+#if defined(__LP64__) || defined(_LP64)
# define REG_b "rbx"
# define REG_S "rsi"
#else