From a129334aefa559e36783347c5243303a6dd8b104 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 15 Apr 2020 00:24:55 +0530 Subject: Compile for non OpenBSD systems Previously the compilation would fail for non OpenBSD systems & the user had to manage it themselves. Now it compiles on non OpenBSD systems but returns nil immediately because unveil isn't supported on those systems. --- block_other.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 block_other.go (limited to 'block_other.go') diff --git a/block_other.go b/block_other.go new file mode 100644 index 0000000..65b7131 --- /dev/null +++ b/block_other.go @@ -0,0 +1,9 @@ +// +build !openbsd + +package lynx + +// UnveilBlock is just a wrapper around unix.UnveilBlock, it does +// nothing on non OpenBSD systems. +func UnveilBlock() error { + return nil +} -- cgit 1.4.1-2-gfad0