aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dev86
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-28 21:58:05 +0800
committermiwi <miwi@FreeBSD.org>2013-03-28 21:58:05 +0800
commitefa99932636ac9851aba615f42cdbcf426d1576e (patch)
treee29b620fcc06864bd074668e6d1eff7afeb26577 /devel/dev86
parent80251c0d6017d6e084cc75a37e29bba16d3a39b6 (diff)
downloadfreebsd-ports-gnome-efa99932636ac9851aba615f42cdbcf426d1576e.tar.gz
freebsd-ports-gnome-efa99932636ac9851aba615f42cdbcf426d1576e.tar.zst
freebsd-ports-gnome-efa99932636ac9851aba615f42cdbcf426d1576e.zip
- Fix build with clang
PR: 174240 Submitted by: Keith White <kwhite@uottawa.ca> Approved by: maintainer
Diffstat (limited to 'devel/dev86')
-rw-r--r--devel/dev86/files/patch-as__genlist.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/dev86/files/patch-as__genlist.c b/devel/dev86/files/patch-as__genlist.c
new file mode 100644
index 000000000000..1aa91dbaa171
--- /dev/null
+++ b/devel/dev86/files/patch-as__genlist.c
@@ -0,0 +1,11 @@
+--- as/genlist.c.orig 2001-06-23 22:13:19.000000000 +0200
++++ as/genlist.c 2013-03-10 18:40:54.000000000 +0100
+@@ -119,7 +119,7 @@ register char *where;
+ power = 5; /* actually 1 more than power */
+ do
+ {
+- for (digit = '0', power_of_10 = (powers_of_10 - 1)[power];
++ for (digit = '0', power_of_10 = powers_of_10[power - 1];
+ num >= power_of_10; num -= power_of_10)
+ ++digit;
+ if (power <= width)