From 8da8608fb9950e83fcb12b165b65c40dfe07cd2e Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 10 Aug 2017 12:36:11 -0700 Subject: [PATCH] Skip compilcation of logparser and tail on solaris (#3113) Allows compilation for solaris --- plugins/inputs/logparser/logparser.go | 2 ++ plugins/inputs/logparser/logparser_solaris.go | 3 +++ plugins/inputs/tail/tail.go | 2 ++ plugins/inputs/tail/tail_solaris.go | 5 +++++ 4 files changed, 12 insertions(+) create mode 100644 plugins/inputs/logparser/logparser_solaris.go create mode 100644 plugins/inputs/tail/tail_solaris.go diff --git a/plugins/inputs/logparser/logparser.go b/plugins/inputs/logparser/logparser.go index 27441c0ba..40870799d 100644 --- a/plugins/inputs/logparser/logparser.go +++ b/plugins/inputs/logparser/logparser.go @@ -1,3 +1,5 @@ +// +build !solaris + package logparser import ( diff --git a/plugins/inputs/logparser/logparser_solaris.go b/plugins/inputs/logparser/logparser_solaris.go new file mode 100644 index 000000000..28afe2677 --- /dev/null +++ b/plugins/inputs/logparser/logparser_solaris.go @@ -0,0 +1,3 @@ +// +build solaris + +package logparser diff --git a/plugins/inputs/tail/tail.go b/plugins/inputs/tail/tail.go index 05a1c95af..5b3c864c0 100644 --- a/plugins/inputs/tail/tail.go +++ b/plugins/inputs/tail/tail.go @@ -1,3 +1,5 @@ +// +build !solaris + package tail import ( diff --git a/plugins/inputs/tail/tail_solaris.go b/plugins/inputs/tail/tail_solaris.go new file mode 100644 index 000000000..802088da2 --- /dev/null +++ b/plugins/inputs/tail/tail_solaris.go @@ -0,0 +1,5 @@ +// Skipping plugin on Solaris due to fsnotify support +// +// +build solaris + +package tail