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

Does not compile on FreeBSD #82

Closed
stephane-martin opened this issue May 11, 2019 · 1 comment
Closed

Does not compile on FreeBSD #82

stephane-martin opened this issue May 11, 2019 · 1 comment
Labels

Comments

@stephane-martin
Copy link

Describe the bug
memguard does not compile on FreeBSD: "undefined: unix.MADV_DONTDUMP"

To Reproduce
trivial

Expected behavior
FreeBSD has MADV_NOCORE instead of MADV_DONTDUMP (https://www.freebsd.org/cgi/man.cgi?query=madvise&sektion=2&manpath=FreeBSD+5.1-release). So MADV_NOCORE should be used when compiling for FreeBSD.

System (please complete the following information):

  • OS and Kernel Versions: Any FreeBSD amd64 (not tested on i386)
  • Memguard Version: 0.15.0

Additional context
Similar issue: #45

@awnumar
Copy link
Owner

awnumar commented May 11, 2019

Thanks for reporting this. Let me know if the issue persists.

awnumar added a commit that referenced this issue May 11, 2019
@awnumar awnumar added the bug label May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants