diff options
author | snappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143> | 2011-03-24 19:12:27 +0000 |
---|---|---|
committer | snappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143> | 2011-03-24 19:12:27 +0000 |
commit | 2e182e9bb840737f9cd8817e859dc17a82f2c16b (patch) | |
tree | 87da1ab83835ec50909fdf8db1a835f3970c44c5 /snappy-test.h | |
parent | 48662cbb7f81533977334629790d346220084527 (diff) | |
download | snappy-2e182e9bb840737f9cd8817e859dc17a82f2c16b.tar.gz snappy-2e182e9bb840737f9cd8817e859dc17a82f2c16b.tar.bz2 snappy-2e182e9bb840737f9cd8817e859dc17a82f2c16b.zip |
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: https://snappy.googlecode.com/svn/trunk@15 03e5f5b5-db94-4691-08a0-1a8bf15f6143
Diffstat (limited to 'snappy-test.h')
-rw-r--r-- | snappy-test.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/snappy-test.h b/snappy-test.h index 1bcc69a..48e2215 100644 --- a/snappy-test.h +++ b/snappy-test.h @@ -21,6 +21,11 @@ #include <stdio.h> #include <stdarg.h> + +#ifdef HAVE_SYS_MMAN_H +#include <sys/mman.h> +#endif + #include <sys/resource.h> #include <sys/time.h> |