Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on OpenBSD #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

realchonk
Copy link

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 [email protected]

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 <[email protected]>
@rbtcollins
Copy link
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
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
Owner

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

src/lib.rs Show resolved Hide resolved
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