diff options
author | dougm <dougm@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-28 00:30:04 +0000 |
---|---|---|
committer | dougm <dougm@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-28 00:30:04 +0000 |
commit | fef3629bad233720a0c7b4a8f9390d4518050fbd (patch) | |
tree | 81b9913ff17d242c2460fab03b61737f6222b541 /include/apr_mmap.h | |
parent | e87f8da0a6e40f660da50cb60191d69e1f7d67c3 (diff) | |
download | libapr-fef3629bad233720a0c7b4a8f9390d4518050fbd.tar.gz |
namespace protect MMAP_{THRESHOLD,LIMIT} with APR_ prefix
PR:
Obtained from:
Submitted by:
Reviewed by: Cliff Woolley
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62570 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_mmap.h')
-rw-r--r-- | include/apr_mmap.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/apr_mmap.h b/include/apr_mmap.h index e09e29fb5..251f3fec1 100644 --- a/include/apr_mmap.h +++ b/include/apr_mmap.h @@ -121,16 +121,20 @@ struct apr_mmap_t { * with systems where the expense of doing an mmap() and an munmap() outweighs * the benefit for small files. It shouldn't be set lower than 1. */ -#ifndef MMAP_THRESHOLD +#ifdef MMAP_THRESHOLD +# define APR_MMAP_THRESHOLD MMAP_THRESHOLD +#else # ifdef SUNOS4 -# define MMAP_THRESHOLD (8*1024) +# define APR_MMAP_THRESHOLD (8*1024) # else -# define MMAP_THRESHOLD 1 +# define APR_MMAP_THRESHOLD 1 # endif /* SUNOS4 */ #endif /* MMAP_THRESHOLD */ -#ifndef MMAP_LIMIT -# define MMAP_LIMIT (4*1024*1024) +#ifdef MMAP_LIMIT +# define APR_MMAP_LIMIT MMAP_LIMIT +#else +# define APR_MMAP_LIMIT (4*1024*1024) #endif /* MMAP_LIMIT */ /* Function definitions */ |