https://github.com/rust-lang/libc/pull/1536 added the ability to mark functions as const, along with a test in https://github.com/rust-lang/libc/blob/42e5708d3c0cfcf68f6ffea45eed7e1732dbd7ec/tests/const_fn.rs. Unfortunately this file is completely dead due to the combination of `#[cfg(target_os = "linux")]` in it and the behavior introduced in 3eb4a48b1b63909a8898aa37b5f610a63d776f4d which skips building the libc crate when `docker: true`, which [is the case for all linuxes](https://github.com/rust-lang/libc/blob/42e5708d3c0cfcf68f6ffea45eed7e1732dbd7ec/.github/workflows/ci.yaml#L52-L57). This all culminated in the fact that https://github.com/rust-lang/libc/pull/4105 broke const functions and https://github.com/rust-lang/libc/pull/4134 failed to fix it in the `--no-default-features` case. This remains broken. @tgross35 EDIT: all releases after 0.2.163 which do not contain a fix for this should be yanked.