6a7351da0d
a) Fix build if limits.h provides definition for PAGE_SIZE, as musl does w/musl per XSI[1] although it's apparently optional [2]. This value is only provided when it's known to be a constant, to avoid the need to discover the value dynamically. b) If not using system-provided (kernel headers, or libc headers, or something) use the POSIX approach of querying the value dynamically using sysconf(_SC_PAGE_SIZE) instead of hardcoded value that hopefully is correct. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html [2] http://www.openwall.com/lists/musl/2015/09/11/8 This patch originate from: https://raw.githubusercontent.com/voidlinux/void-packages/a0ece13ad7ab2aae760e09e41e0459bd999a3695/srcpkgs/thin-provisioning-tools/patches/musl.patch and was also applied in NixOS: https://github.com/NixOS/nixpkgs/pull/40559/ cc @dtzWill |
||
---|---|---|
.. | ||
array_block_t.cc | ||
array_t.cc | ||
base64_t.cc | ||
bcache_t.cc | ||
bitset_t.cc | ||
block_t.cc | ||
bloom_filter_t.cc | ||
btree_counter_t.cc | ||
btree_damage_visitor_t.cc | ||
btree_t.cc | ||
buffer_t.cc | ||
cache_superblock_t.cc | ||
cache_t.cc | ||
copier_t.cc | ||
damage_tracker_t.cc | ||
endian_t.cc | ||
era_superblock_t.cc | ||
error_state_t.cc | ||
gmock_main.cc | ||
io_engine_t.cc | ||
Makefile.in | ||
mem_pool_t.cc | ||
metadata_checker_t.cc | ||
metadata_t.cc | ||
rmap_visitor_t.cc | ||
rolling_hash_t.cc | ||
run_list_t.cc | ||
run_set_t.cc | ||
space_map_t.cc | ||
span_iterator_t.cc | ||
test_utils.cc | ||
test_utils.h | ||
thin_metadata_t.cc | ||
transaction_manager_t.cc |