diff options
author | ahoka <ahoka@pkgsrc.org> | 2009-10-30 18:20:04 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2009-10-30 18:20:04 +0000 |
commit | b868d2b95afc580cfcf59cf0c5c9dd33e758092e (patch) | |
tree | 1c9fe6a1943fae081501bc24f951c82c4cca1ebb /devel/gmake | |
parent | db46dcacb4f97fe65dc352854b7ac790534b36d0 (diff) | |
download | pkgsrc-b868d2b95afc580cfcf59cf0c5c9dd33e758092e.tar.gz |
Fix compilation with PCC.
Diffstat (limited to 'devel/gmake')
-rw-r--r-- | devel/gmake/patches/patch-pa | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/gmake/patches/patch-pa b/devel/gmake/patches/patch-pa new file mode 100644 index 00000000000..345fd4ef93f --- /dev/null +++ b/devel/gmake/patches/patch-pa @@ -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 |