r3818 - trunk/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Mon Feb 23 16:10:33 CET 2009


Author: tfheen
Date: 2009-02-23 16:10:33 +0100 (Mon, 23 Feb 2009)
New Revision: 3818

Modified:
   trunk/varnish-cache/bin/varnishd/storage_persistent.c
Log:
Add defines for MAP_NOCORE / MAP_NOSYNC so this compiles on Linux


Modified: trunk/varnish-cache/bin/varnishd/storage_persistent.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_persistent.c	2009-02-23 15:01:27 UTC (rev 3817)
+++ trunk/varnish-cache/bin/varnishd/storage_persistent.c	2009-02-23 15:10:33 UTC (rev 3818)
@@ -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;



More information about the varnish-commit mailing list