From 93d11c8e35ffcd969fd881efe1873e715a6ef93b Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Fri, 6 Feb 2015 15:13:59 +0100 Subject: [PATCH] Remove procfs dependency unless cgo is enabled --- prometheus/process_collector_procfs.go | 2 +- prometheus/process_collector_rest.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/process_collector_procfs.go b/prometheus/process_collector_procfs.go index 2bea3ba..fab1f03 100644 --- a/prometheus/process_collector_procfs.go +++ b/prometheus/process_collector_procfs.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build linux plan9 solaris +// +build linux,cgo plan9,cgo solaris,cgo package prometheus diff --git a/prometheus/process_collector_rest.go b/prometheus/process_collector_rest.go index 1b002e8..0b3698a 100644 --- a/prometheus/process_collector_rest.go +++ b/prometheus/process_collector_rest.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build !linux,!plan9,!solaris +// +build !linux,!plan9,!solaris !cgo package prometheus