Fix build on 7.x.

PR:		ports/117535
Submitted by:	Matthieu GUEGAN <matt.guegan@free.fr>
This commit is contained in:
Oliver Braun 2008-02-10 07:55:51 +00:00
parent f46a12cb0e
commit ed07b2b5b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=206981
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- rts.c.orig 2007-10-26 09:32:02.000000000 +0200
+++ rts.c 2007-10-26 09:28:14.000000000 +0200
@@ -6,7 +6,7 @@
void defaultsHook (void) {
RtsFlags.GcFlags.maxStkSize = 8*1000002 / sizeof(W_); /* 8M */
-#ifdef _SC_PHYS_PAGES
+#if defined(_SC_PHYS_PAGES) && defined(_SC_AVPHYS_PAGES)
/* Try to set reasonable values for when to start compacting the heap to
avoid massive swapping. */
{

View file

@ -0,0 +1,11 @@
--- rts.c.orig 2007-10-26 09:32:02.000000000 +0200
+++ rts.c 2007-10-26 09:28:14.000000000 +0200
@@ -6,7 +6,7 @@
void defaultsHook (void) {
RtsFlags.GcFlags.maxStkSize = 8*1000002 / sizeof(W_); /* 8M */
-#ifdef _SC_PHYS_PAGES
+#if defined(_SC_PHYS_PAGES) && defined(_SC_AVPHYS_PAGES)
/* Try to set reasonable values for when to start compacting the heap to
avoid massive swapping. */
{