summaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2006-06-21 18:29:18 +0000
committerdrochner <drochner@pkgsrc.org>2006-06-21 18:29:18 +0000
commit39b95b10591e83376380b19e9be04f7559b8b301 (patch)
treeae26a0af42afff5374c5991c150716d44af9f994 /multimedia/mjpegtools/patches
parent5a7738ae2c4cc61e1916ef1139ef07d266daf01f (diff)
downloadpkgsrc-39b95b10591e83376380b19e9be04f7559b8b301.tar.gz
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)
Diffstat (limited to 'multimedia/mjpegtools/patches')
-rw-r--r--multimedia/mjpegtools/patches/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/mjpegtools/patches/patch-ab b/multimedia/mjpegtools/patches/patch-ab
new file mode 100644
index 00000000000..a6966ddc9f1
--- /dev/null
+++ b/multimedia/mjpegtools/patches/patch-ab
@@ -0,0 +1,13 @@
+$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