Mercurial > crates > nonstick
comparison libpam-sys/src/constants.rs @ 190:995aca290452
Restructure the way libpam-sys-impls works to fix cross-compilation.
The previous structure of libpam-sys-impls meant that things got
confusing (including for me) between what constants were build-time
and what constants were run-time. This broke cross-compilation.
This simplifies the way that works so that `libpam-sys-impls` has
*no* build script itself and is intended mostly as a library to be
included in other libraries' build scripts (while also exporting
the PamImpl enum).
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Sat, 02 Aug 2025 18:47:46 -0400 |
| parents | 0730f5f2ee2a |
| children |
comparison
equal
deleted
inserted
replaced
| 189:b2456d274576 | 190:995aca290452 |
|---|---|
| 170 other => Err(other), | 170 other => Err(other), |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 } | 173 } |
| 174 | 174 |
| 175 #[doc(inline)] | |
| 175 pub use pam_modutil_redirect_fd::*; | 176 pub use pam_modutil_redirect_fd::*; |
| 176 } | 177 } |
| 177 | 178 |
| 178 #[cfg(any(pam_impl = "OpenPam", pam_impl = "Sun", pam_impl = "XSso"))] | 179 #[cfg(any(pam_impl = "OpenPam", pam_impl = "Sun", pam_impl = "XSso"))] |
| 179 pub use xsso_shared::*; | 180 pub use xsso_shared::*; |
