From a88b8bcfbc29e71f2189b7a8a5acdbf62de2af21 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Tue, 1 Jul 2014 11:07:42 +0100 Subject: [PATCH] Fix build on freebsd. Copied from Perforce Change: 186760 ServerID: perforce.ravenbrook.com --- mps/code/protsgix.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mps/code/protsgix.c b/mps/code/protsgix.c index e587ac86424..25353aa139d 100644 --- a/mps/code/protsgix.c +++ b/mps/code/protsgix.c @@ -17,6 +17,7 @@ */ #include "mpm.h" +#include "vm.h" #if !defined(MPS_OS_XC) && !defined(MPS_OS_FR) #error "protsgix.c is Unix-specific, currently for MPS_OS_FR or XC" @@ -138,6 +139,15 @@ void ProtSetup(void) } +/* ProtGranularity -- return the granularity of protection */ + +Size ProtGranularity(void) +{ + /* Individual pages can be protected. */ + return PageSize(); +} + + /* C. COPYRIGHT AND LICENSE * * Copyright (C) 2001-2007 Ravenbrook Limited .