Mercurial > crates > nonstick
comparison build.rs @ 83:9fc778c03bff
Reorder pam_types to work on BSD.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 10 Jun 2025 01:56:41 -0400 |
parents | 73c3f8e3b49d |
children | a638a45e5f1f |
comparison
equal
deleted
inserted
replaced
82:73c3f8e3b49d | 83:9fc778c03bff |
---|---|
41 // tries to run this against the wrong PAM library, it fails. | 41 // tries to run this against the wrong PAM library, it fails. |
42 .allowlist_function("pam_setenv") | 42 .allowlist_function("pam_setenv") |
43 .header_contents( | 43 .header_contents( |
44 "openpam.h", | 44 "openpam.h", |
45 r#" | 45 r#" |
46 #include <security/pam_types.h> | |
46 #include <security/openpam.h> | 47 #include <security/openpam.h> |
47 #include <security/pam_appl.h> | 48 #include <security/pam_appl.h> |
48 #include <security/pam_constants.h> | 49 #include <security/pam_constants.h> |
49 #include <security/pam_types.h> | |
50 "#, | 50 "#, |
51 ); | 51 ); |
52 | 52 |
53 let (pam_impl, bindings) = { | 53 let (pam_impl, bindings) = { |
54 if let Ok(bindings) = linux_builder.generate() { | 54 if let Ok(bindings) = linux_builder.generate() { |