summaryrefslogtreecommitdiff
path: root/lang/gcc5/patches/patch-libgo_mksysinfo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc5/patches/patch-libgo_mksysinfo.sh')
-rw-r--r--lang/gcc5/patches/patch-libgo_mksysinfo.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/gcc5/patches/patch-libgo_mksysinfo.sh b/lang/gcc5/patches/patch-libgo_mksysinfo.sh
new file mode 100644
index 00000000000..23bc2760452
--- /dev/null
+++ b/lang/gcc5/patches/patch-libgo_mksysinfo.sh
@@ -0,0 +1,13 @@
+$NetBSD: patch-libgo_mksysinfo.sh,v 1.1 2015/07/16 12:03:36 ryoon Exp $
+
+--- libgo/mksysinfo.sh.orig 2014-11-12 07:15:40.000000000 +0000
++++ libgo/mksysinfo.sh
+@@ -470,7 +470,7 @@ upcase_fields () {
+ # GNU/Linux specific; it should do no harm if there is no
+ # _user_regs_struct.
+ regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go || true`
+-if test "$regs" == ""; then
++if test "$regs" = ""; then
+ # s390
+ regs=`grep '^type __user_regs_struct struct' gen-sysinfo.go || true`
+ if test "$regs" != ""; then