From a86c963d9fce9d95aa69e622c153cdcc4de09f70 Mon Sep 17 00:00:00 2001 From: "snappy.mirrorbot@gmail.com" Date: Thu, 24 Mar 2011 19:12:27 +0000 Subject: Make the unit test work on systems without mmap(). This is required for, among others, Windows support. For Windows in specific, we could have used CreateFileMapping/MapViewOfFile, but this should at least get us a bit closer to compiling, and is of course also relevant for embedded systems with no MMU. (Part 1/2) R=csilvers DELTA=9 (8 added, 0 deleted, 1 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1031 git-svn-id: http://snappy.googlecode.com/svn/trunk@15 03e5f5b5-db94-4691-08a0-1a8bf15f6143 --- snappy-stubs-internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'snappy-stubs-internal.h') diff --git a/snappy-stubs-internal.h b/snappy-stubs-internal.h index 28019e4..5a96378 100644 --- a/snappy-stubs-internal.h +++ b/snappy-stubs-internal.h @@ -23,7 +23,10 @@ #include #include #include + +#ifdef HAVE_SYS_MMAN #include +#endif #include "config.h" #include "snappy-stubs-public.h" -- cgit v1.2.1