thin-provisioning-tools/block-cache
Jörg Thalheim 6a7351da0d Fix musl build (#96)
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
2018-05-22 14:02:49 +01:00
..
block_cache.cc [block-cache] remove spurious FIXME 2017-08-14 14:12:05 +01:00
block_cache.h [block-cache] tidy hit/miss tracking 2017-08-14 14:11:53 +01:00
copier.cc [block-cache] Fix some bugs in the copier 2016-06-14 16:27:17 +01:00
copier.h [block-cache] Fix some bugs in the copier 2016-06-14 16:27:17 +01:00
io_engine.cc [block-cache] FIx some bugs in the io engine 2016-06-14 16:26:37 +01:00
io_engine.h Fix musl build (#96) 2018-05-22 14:02:49 +01:00
list.h forgot block_cache itself 2014-07-22 16:43:44 +01:00
mem_pool.cc [mempool] more tests 2016-06-01 14:46:27 +01:00
mem_pool.h [mempool] more tests 2016-06-01 14:46:27 +01:00