awnumar / memguard

Secure software enclave for storage of sensitive information in memory.
Apache License 2.0
2.5k stars 123 forks source link

MADV_DONTDUMP and MAP_ANONYMOUS do not exist on OpenBSD amd64 #45

Closed stephane-martin closed 6 years ago

stephane-martin commented 6 years ago

Hello,

compilation fails on OpenBSD because MADV_DONTDUMP and MAP_ANONYMOUS do not exist in golang/x/sys/unix.

Thanks!

awnumar commented 6 years ago

Thanks for reporting this. In addition to fixing this issue, I have also created a patch against sys/unix that adds the MAP_ANONYMOUS flag to the set of OpenBSD constants.