From: Manolis Ragkousis <[email protected]>
On Hurd, because madvise() is not implemented we disable it.
* libguile/vm.c (return_unused_stack_to_os): Don't use madvise() on Hurd.
---
libguile/vm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libguile/vm.c b/libguile/vm.c
index 18f219249..7089f23c7 100644
--- a/libguile/vm.c
+++ b/libguile/vm.c
@@ -896,6 +896,8 @@ return_unused_stack_to_os (struct scm_vm *vp)
/* Return these pages to the OS. The next time they are paged in,
they will be zeroed. */
+#if !defined __gnu_hurd__
+ /* madvise() is not implemented on GNU Hurd. */
if (lo < hi)
{
int ret = 0;
@@ -907,7 +909,7 @@ return_unused_stack_to_os (struct scm_vm *vp)
if (ret)
perror ("madvise failed");
}
-
+#endif
vp->sp_min_since_gc = vp->sp;
#endif
}
--
2.13.0