diff options
author | kristerw <kristerw@pkgsrc.org> | 2004-11-12 20:53:32 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2004-11-12 20:53:32 +0000 |
commit | f298099c5e7a4953db70c55bad3641e3bd0c05c4 (patch) | |
tree | ae0a0a0f3f137d5bb430c2e49a7c0719840fc09d /wm/windowmaker/patches | |
parent | 5401909985d9a90ee55f0cf95d8739436708e85a (diff) | |
download | pkgsrc-f298099c5e7a4953db70c55bad3641e3bd0c05c4.tar.gz |
Fix a C99-ism to make this pkg build with gcc 2.95.
Diffstat (limited to 'wm/windowmaker/patches')
-rw-r--r-- | wm/windowmaker/patches/patch-ag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wm/windowmaker/patches/patch-ag b/wm/windowmaker/patches/patch-ag new file mode 100644 index 00000000000..f87f232129e --- /dev/null +++ b/wm/windowmaker/patches/patch-ag @@ -0,0 +1,15 @@ +$NetBSD: patch-ag,v 1.3 2004/11/12 21:17:55 kristerw Exp $ + +--- src/wmspec.c.orig Fri Nov 12 22:06:05 2004 ++++ src/wmspec.c Fri Nov 12 22:08:17 2004 +@@ -392,8 +392,9 @@ + RImage *new_rimage; + + do { ++ unsigned int tmp; + len = data[pos+0]*data[pos+1]; +- unsigned int tmp = pref_sq-len; ++ tmp = pref_sq-len; + if (tmp < best_tmp && tmp > 0) { + best_tmp = tmp; + best_pos = pos; |