pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gmake/patches Fix compilation with PCC.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc40d9019ff2
branches:  trunk
changeset: 400937:dc40d9019ff2
user:      ahoka <ahoka%pkgsrc.org@localhost>
date:      Fri Oct 30 18:20:04 2009 +0000

description:
Fix compilation with PCC.

diffstat:

 devel/gmake/patches/patch-pa |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r d654874b863f -r dc40d9019ff2 devel/gmake/patches/patch-pa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gmake/patches/patch-pa      Fri Oct 30 18:20:04 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-pa,v 1.1 2009/10/30 18:20:04 ahoka Exp $
+
+PCC says: hash.c:326: error: Constant "4294967295" is out of range
+
+--- hash.c.orig        2006-02-11 21:00:39.000000000 +0100
++++ hash.c
+@@ -323,7 +323,7 @@ round_up_2 (unsigned long n)
+   n |= (n >> 8);
+   n |= (n >> 16);
+ 
+-#if !defined(HAVE_LIMITS_H) || ULONG_MAX > 4294967295
++#if !defined(HAVE_LIMITS_H) || ULONG_MAX > 4294967295ul
+   /* We only need this on systems where unsigned long is >32 bits.  */
+   n |= (n >> 32);
+ #endif



Home | Main Index | Thread Index | Old Index