=================================================================== RCS file: /cvs/mandoc/mansearch.c,v retrieving revision 1.41 retrieving revision 1.44 diff -u -p -r1.41 -r1.44 --- mandoc/mansearch.c 2014/08/05 14:43:10 1.41 +++ mandoc/mansearch.c 2014/08/16 19:00:01 1.44 @@ -1,4 +1,4 @@ -/* $Id: mansearch.c,v 1.41 2014/08/05 14:43:10 schwarze Exp $ */ +/* $Id: mansearch.c,v 1.44 2014/08/16 19:00:01 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -15,11 +15,11 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include +#include + #include #include #include @@ -32,7 +32,7 @@ #include #include -#ifdef HAVE_OHASH +#if HAVE_OHASH #include #else #include "compat_ohash.h" @@ -123,7 +123,8 @@ mansearch_setup(int start) } pagecache = mmap(NULL, PC_PAGESIZE * PC_NUMPAGES, - PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); + PROT_READ | PROT_WRITE, + MAP_SHARED | MAP_ANON, -1, 0); if (MAP_FAILED == pagecache) { perror("mmap");