05f347b12d
Fix problem with systems with more than 2 GB memory (notably, x86_64-based systems). Thanks Goswin Brederlow. From Debian via Andrew Daugherity in PR 36627. Bump PKGREVISION. pkglint cleanup while here.
31 lines
717 B
Text
31 lines
717 B
Text
$NetBSD: patch-an,v 1.3 2010/02/21 16:44:52 wiz Exp $
|
|
|
|
--- stage2/char_io.c
|
|
+++ stage2/char_io.c
|
|
@@ -1175,13 +1175,13 @@
|
|
#endif /* ! STAGE1_5 */
|
|
|
|
int
|
|
-memcheck (int addr, int len)
|
|
+memcheck (unsigned long int addr, unsigned long int len)
|
|
{
|
|
#ifdef GRUB_UTIL
|
|
- auto int start_addr (void);
|
|
- auto int end_addr (void);
|
|
+ auto unsigned long int start_addr (void);
|
|
+ auto int unsigned long end_addr (void);
|
|
|
|
- auto int start_addr (void)
|
|
+ auto unsigned long int start_addr (void)
|
|
{
|
|
int ret;
|
|
# if defined(HAVE_START_SYMBOL)
|
|
@@ -1192,7 +1192,7 @@
|
|
return ret;
|
|
}
|
|
|
|
- auto int end_addr (void)
|
|
+ auto unsigned long int end_addr (void)
|
|
{
|
|
int ret;
|
|
# if defined(HAVE_END_SYMBOL)
|