From 7ef6f39477ef4acdcd63bce2f1feb4d1dbb2e3cc Mon Sep 17 00:00:00 2001 From: tfheen Date: Mon, 23 Feb 2009 15:10:33 +0000 Subject: [PATCH] Add defines for MAP_NOCORE / MAP_NOSYNC so this compiles on Linux git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3818 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_persistent.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/varnish-cache/bin/varnishd/storage_persistent.c b/varnish-cache/bin/varnishd/storage_persistent.c index 2dbdf607..c09fcd3c 100644 --- a/varnish-cache/bin/varnishd/storage_persistent.c +++ b/varnish-cache/bin/varnishd/storage_persistent.c @@ -49,6 +49,14 @@ #include "persistent.h" +#ifndef MAP_NOCORE +#define MAP_NOCORE 0 /* XXX Linux */ +#endif + +#ifndef MAP_NOSYNC +#define MAP_NOSYNC 0 /* XXX Linux */ +#endif + /* XXX: name confusion with on-media version ? */ struct smp_seg { VTAILQ_ENTRY(smp_seg) list; -- 2.39.5