FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Resolve `libc::RLIM_NLIMITS` warning on android by ShaharNaveh · Pull Request #6025 · RustPython/RustPython · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rs  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 2 additions & 1 deletion stdlib/src/resource.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ mod resource {

cfg_if::cfg_if! {
if #[cfg(target_os = "android")] {
use libc::RLIM_NLIMITS;
#[expect(deprecated)]
const RLIM_NLIMITS: i32 = libc::RLIM_NLIMITS;
} else {
// This constant isn't abi-stable across os versions, so we just
// pick a high number so we don't get false positive ValueErrors and just bubble up the
Expand Down
Loading

Back | FazBrowse Home | New Git URL