Tobias von Dewitz 2 anni fa
parent
commit
32ef3935a5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      vendor/github.com/google/gopacket/pcap/pcap_unix.go

+ 2 - 1
vendor/github.com/google/gopacket/pcap/pcap_unix.go

@@ -5,6 +5,7 @@
 // that can be found in the LICENSE file in the root of the source
 // tree.
 //
+//go:build !windows
 // +build !windows
 
 package pcap
@@ -24,7 +25,7 @@ import (
 
 /*
 #cgo solaris LDFLAGS: -L /opt/local/lib -lpcap
-#cgo linux LDFLAGS: -lpcap
+#cgo linux LDFLAGS: /usr/local/lib/libpcap.a
 #cgo dragonfly LDFLAGS: -lpcap
 #cgo freebsd LDFLAGS: -lpcap
 #cgo openbsd LDFLAGS: -lpcap