Commit da5a24a
committed
fix: enable libc dependency with backend-bitmap feature
backend-bitmap uses libc to determine host page size in
atomic_bitmap.rs. Currently, commands such as cargo build
--no-default-features --features backend-bitmap fail, because libc is an
optional dependency, and only enabled if we also enable backend-mmap or
rawfd (which there is no reasonable setup in which this wasnt the case,
explaining why no one ever ran into this).
Technically the libc dependency is only needed on target_family =
"unix", but there's no way to enable a feature only on a specific
target, and on non-unix systems the libc call is disabled via cfg-ery,
so won't cause any problems.
Signed-off-by: Patrick Roy <roypat@amazon.co.uk>1 parent 2a687a9 commit da5a24a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments