Skip to content

Fix compilation on OpenBSD - #19

Open
realchonk wants to merge 2 commits into
rbtcollins:masterfrom
realchonk:fix-openbsd
Open

Fix compilation on OpenBSD#19
realchonk wants to merge 2 commits into
rbtcollins:masterfrom
realchonk:fix-openbsd

Conversation

@realchonk

@realchonk realchonk commented Oct 29, 2022

Copy link
Copy Markdown

This PR fixes compilation on OpenBSD by providing a stub for ulimited_memory().
The original implementation for unix doesn't work for OpenBSD, because it doesn't have RLIMIT_AS.
OpenBSD does provide RLIMIT_DATA though.

Signed-off-by: Benjamin Stürz benni@stuerz.xyz


This change is Reviewable

This commit fixes compilation on OpenBSD by providing a stub for
ulimited_memory(). The original implementation for unix doesn't
work for OpenBSD, because it doesn't have RLIMIT_AS.
OpenBSD does provide RLIMIT_DATA though.

Signed-off-by: Benjamin Stürz <benni@stuerz.xyz>
@rbtcollins

Copy link
Copy Markdown
Owner

Thank you for this change. Master seems to be breaking on android and we need to track that down before doing a release.

@realchonk

Copy link
Copy Markdown
Author
error: linker `aarch64-linux-android-clang` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `effective-limits` due to previous error
Error: Process completed with exit code 101.

Seems to be a CI configuration issue for android.

error occurred: Failed to find tool. Is `x86_64-unknown-freebsd11-clang` installed?

Same with freebsd.

@rbtcollins

Copy link
Copy Markdown
Owner

Yah; I've fixed FreeBSD now, but still not sure whats up with Android

Comment thread src/lib.rs
@werdl werdl mentioned this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants