Skip to content

Commit 0cd1823

Browse files
arunsrini3082Arun S
andauthored
kernel_tainted: use linux build tag instead of !windows (#847)
util.SysReadUintFromFile is defined in internal/util/sysreadfile.go which has a //go:build linux constraint. Using !windows caused build failures on OpenBSD and other non-Linux, non-Windows platforms. /proc/sys/kernel/tainted is Linux-specific, so linux is the correct build tag. Signed-off-by: Arun Srinivasan <arun.srinivasan@flipkart.com> Signed-off-by: Arun S <arun.srinivasan@flipkart.com> Co-authored-by: Arun S <arun.srinivasan@flipkart.com>
1 parent 1de9cf3 commit 0cd1823

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

kernel_tainted.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
//go:build !windows
14+
//go:build linux
1515

1616
package procfs
1717

kernel_tainted_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
//go:build !windows
14+
//go:build linux
1515

1616
package procfs
1717

0 commit comments

Comments
 (0)