Commit e2a15f6a authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Portability: don't use non-portable mmap(2) flags.

git-svn-id: http://www.varnish-cache.org/svn/trunk@339 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ffb64e0b
......@@ -18,6 +18,14 @@
#include "heritage.h"
#ifndef MAP_HASSEMAPHORE
#define MAP_HASSEMAPHORE 0 /* XXX Linux */
#endif
#ifndef MAP_NOSYNC
#define MAP_NOSYNC 0 /* XXX Linux */
#endif
struct varnish_stats *VSL_stats;
static struct shmloghead *loghead;
......
......@@ -25,6 +25,14 @@
#include "shmlog.h"
#include "cache.h"
#ifndef MAP_NOCORE
#define MAP_NOCORE 0 /* XXX Linux */
#endif
#ifndef MAP_NOSYNC
#define MAP_NOSYNC 0 /* XXX Linux */
#endif
#define MINPAGES 128
/*--------------------------------------------------------------------*/
......
......@@ -13,6 +13,10 @@
#include "shmlog.h"
#include "varnishapi.h"
#ifndef MAP_HASSEMAPHORE
#define MAP_HASSEMAPHORE 0 /* XXX Linux */
#endif
static unsigned char *logstart, *logend;
struct shmloghead *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment