Skip to content

Commit 3d2d871

Browse files
committed
darwin dirty fix
1 parent 001f105 commit 3d2d871

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

netstat/netstat_linux.go renamed to netstat/netstat_etc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build !windows
2+
// +build !windows
3+
14
// Package netstat provides primitives for getting socket information on a
25
// Linux based operating system.
36
package netstat

netstat/netstat_windows.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build windows
12
// +build windows
23

34
package netstat
@@ -268,7 +269,7 @@ func rawGetTCPTable2(proc uintptr, tab unsafe.Pointer, size *uint32, order bool)
268269
return nil
269270
}
270271

271-
func getTCPTable2(proc uintptr, order bool) ([]byte, error) {
272+
func getTCPTable2(proc uintptr, _ bool) ([]byte, error) {
272273
var (
273274
size uint32
274275
buf []byte

0 commit comments

Comments
 (0)