From d643112511912e4595a5b66146777fdc39702691 Mon Sep 17 00:00:00 2001 From: atomicules Date: Mon, 19 Aug 2019 21:40:08 +0100 Subject: [PATCH] Add netbsd build header to process_nix/unix On NetBSD we can take advantage of Linux Emulation so we have the procfs mounted and simply use what Linux does. This builds and the tests pass in the scenario. I haven't yet been able to get the tests to pass by copying the process_openbsd.go approach. If/when I do I will do that as a separate branch. References: https://github.com/dressupgeekout/keybase-client/commit/bccaaf3096a575589bb6ee8194008c34fe1f97c8 --- process_nix_test.go | 2 +- process_unix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/process_nix_test.go b/process_nix_test.go index ed2aec2..2185ffa 100644 --- a/process_nix_test.go +++ b/process_nix_test.go @@ -1,4 +1,4 @@ -// +build darwin linux +// +build darwin linux netbsd package ps diff --git a/process_unix.go b/process_unix.go index f4e8da2..8c89b7e 100644 --- a/process_unix.go +++ b/process_unix.go @@ -1,4 +1,4 @@ -// +build linux +// +build linux netbsd package ps