Fix build on 7.x.
PR: ports/117535 Submitted by: Matthieu GUEGAN <matt.guegan@free.fr>
This commit is contained in:
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
11
devel/darcs/files/patch-rtc.c
Normal file
11
devel/darcs/files/patch-rtc.c
Normal 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. */
|
||||
{
|
11
devel/hs-darcs/files/patch-rtc.c
Normal file
11
devel/hs-darcs/files/patch-rtc.c
Normal 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. */
|
||||
{
|
Loading…
Reference in a new issue