aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2011-09-17 07:59:30 +0800
committerstas <stas@FreeBSD.org>2011-09-17 07:59:30 +0800
commit7f66d956dac83c13fb71300d0a521bbd4a99ba60 (patch)
treeff05a6969e5b6eab1d0c0fe3c86a2dee8cb2f9ea /sysutils
parent74c9f11f8d248a6689d72148ec78894a5f5fbf5b (diff)
downloadfreebsd-ports-gnome-7f66d956dac83c13fb71300d0a521bbd4a99ba60.tar.gz
freebsd-ports-gnome-7f66d956dac83c13fb71300d0a521bbd4a99ba60.tar.zst
freebsd-ports-gnome-7f66d956dac83c13fb71300d0a521bbd4a99ba60.zip
- Fix build for old binutils, which are used on FreeBSD 8.x.
Reported by: nox@ Obtained from: x86info git
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/x86info/files/patch-features.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/x86info/files/patch-features.c b/sysutils/x86info/files/patch-features.c
new file mode 100644
index 000000000000..5b9d650d3028
--- /dev/null
+++ b/sysutils/x86info/files/patch-features.c
@@ -0,0 +1,11 @@
+--- features.c.orig 2011-09-16 16:57:57.000000000 -0700
++++ features.c 2011-09-16 16:58:06.000000000 -0700
+@@ -469,7 +469,7 @@
+ died = sigsetjmp(out, 1);
+
+ if (!died)
+- asm volatile("nopl 0(%eax)");
++ asm volatile(".byte 0x0f,0x1f,0x00 /* nopl 0(%eax) */");
+
+ printf("Long NOPs supported: %s\n", died ? "no" : "yes");
+ }