diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2018-03-02 09:50:21 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-22 08:47:37 -0400 |
commit | 946ed24ca5a152acc6c2d71e395eaa65111f2825 (patch) | |
tree | 477d65e2fa9b8d951407377fd1e5a709d0a3631c /src/common/compat.h | |
parent | 54e25ab124b4ebb50f1577483ac5c08f67e8b114 (diff) | |
download | tor-946ed24ca5a152acc6c2d71e395eaa65111f2825.tar.gz tor-946ed24ca5a152acc6c2d71e395eaa65111f2825.zip |
Do not page-align mmap length. #25399
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index f7932c914a..1bdff8db3d 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -318,12 +318,12 @@ typedef struct tor_mmap_t { size_t size; /**< Size of the file. */ /* None of the fields below should be accessed from outside compat.c */ -#ifdef HAVE_SYS_MMAN_H +#ifdef HAVE_MMAP size_t mapping_size; /**< Size of the actual mapping. (This is this file * size, rounded up to the nearest page.) */ #elif defined _WIN32 HANDLE mmap_handle; -#endif /* defined(HAVE_SYS_MMAN_H) || ... */ +#endif /* defined(HAVE_MMAP) || ... */ } tor_mmap_t; |