summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-03-21 12:26:15 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-03-21 12:26:21 -0400
commit16b453cb9f82d3ee4d26b5b93a350cd5843fb8bb (patch)
tree477d65e2fa9b8d951407377fd1e5a709d0a3631c
parent774d786e07d1600e056be90ce10ef4b91fd1aae9 (diff)
downloadtor-bug25399.tar.xz
tor-bug25399.zip
fixup! Do not page-align mmap length. #25399bug25399
-rw-r--r--src/common/compat.h4
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;